You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7eac3e5
Browse filesBrowse the repository at this point in the historyBrowse files
build(srcts): Turn on TypeScript strict mode (#154)
Fix the 40 errors strict mode reports:
- Type the untyped locals and callback parameters.
- Return `T | undefined` from StatusArr.remove()/last() and the Node
wrappers, and use `?.` where the last status may be missing.
- Walk the ancestor and descendant ids without reassigning a
`string | null` variable.
- Mark GraphAtStep fields set by its init methods with `!`.
- Read the timeline position from the native mouse event.
- Replace utils/ArrayHelper.ts with Array#flatMap and
utils/queryString.ts with URLSearchParams.
|`inst/reactlog/reactlogAsset/`|`reactlog.css`, font CSS, `images/*.svg`, built `reactlog.js`|
29
29
30
30
## The HTML template
@@ -157,7 +157,7 @@ Node time labels are separate: `rlog.displayTimeOnNodes` is true unless `window.
157
157
158
158
## Query params and test mode
159
159
160
-
`parseQuery()` (`srcts/utils/queryString.ts`) turns `window.location.search` into an object. The only key read is `test`: `inTestMode = parseQuery().test === "1"` (`srcts/utils/shinytest.ts`). In test mode:
160
+
`srcts/utils/shinytest.ts` reads the `test` query parameter with `URLSearchParams`: `inTestMode` is true when the URL has `?test=1`. In test mode:
161
161
162
162
- the header time and session show `(shinytest)` (`logEntry.ts`),
0 commit comments