diff --git a/scripts/make_docs.sh b/scripts/make_docs.sh index 643fff38..76490b16 100755 --- a/scripts/make_docs.sh +++ b/scripts/make_docs.sh @@ -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" \ diff --git a/src/excmds.test.ts b/src/excmds.test.ts index ec7c89ac..b0bc5926 100644 --- a/src/excmds.test.ts +++ b/src/excmds.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 diff --git a/src/lib/config.ts b/src/lib/config.ts index 3682f803..20f89675 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -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"