Fix #5513: preserve type information about internal objects

This commit is contained in:
Oliver Blanthorn 2026-08-30 12:22:50 +02:00
parent 8a6bae175e
commit e7caf837ae
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
3 changed files with 8 additions and 1 deletions

View file

@ -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" \

View file

@ -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

View file

@ -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"