mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-09 23:06:21 -04:00
Fix #5513: preserve type information about internal objects
This commit is contained in:
parent
8a6bae175e
commit
e7caf837ae
|
|
@ -12,6 +12,7 @@ fi
|
|||
--theme tridactyl --router tridactyl \
|
||||
"$@" \
|
||||
--entryPointStrategy expand --validation.notExported false \
|
||||
--excludeInternal \
|
||||
--excludePrivate false --excludePrivateClassFields false \
|
||||
--includeHierarchySummary false \
|
||||
--exclude "src/**/?(test_utils|*.test).ts" \
|
||||
|
|
|
|||
|
|
@ -114,6 +114,12 @@ test("`set` preserves deep custom arrays", async () => {
|
|||
expect(config.getDynamic("custom", "deep", "array")).toEqual([1, 2])
|
||||
})
|
||||
|
||||
test("`set` accepts logging levels", async () => {
|
||||
await set("logging.native", "debug")
|
||||
|
||||
expect(config.get("logging", "native")).toBe("debug")
|
||||
})
|
||||
|
||||
test("`colourscheme --url` only refetches with `--update`", async () => {
|
||||
const args = ["--module=reader", "--url=x", "issue5490"]
|
||||
const fetchMock = jest
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ function mutateInBackground(command, args) {
|
|||
return browser.runtime.sendMessage({ type: "config_background", command, args })
|
||||
}
|
||||
|
||||
/** @hidden
|
||||
/** @internal
|
||||
* Ideally, LoggingLevel should be in logging.ts and imported from there. However this would cause a circular dependency, which webpack can't deal with
|
||||
*/
|
||||
export type LoggingLevel = "never" | "error" | "warning" | "info" | "debug"
|
||||
|
|
|
|||
Loading…
Reference in a new issue