We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f62f75 commit 39a2c01Copy full SHA for 39a2c01
browser/errors.ts
@@ -16,7 +16,6 @@ let string = browser({
16
available: ['ru', 'en'],
17
fallback: 'en'
18
})
19
-// THROWS 'string' is not assignable to parameter of type '"en" | "ru"
20
test(string.get())
21
22
// THROWS type '{ available: readonly ["ru", "fr"]; fallback: "fr" | "ru"; }
browser/index.d.ts
@@ -8,6 +8,7 @@ type AutodetectOpts<Locales extends readonly string[]> =
8
}
9
: {
10
available: Locales
11
+ fallback?: Locales[number]
12
13
14
/**
0 commit comments