Skip to content

Commit 069fc20

Browse files
committed
Stricter typing for @fluent/langneg
1 parent a1ac29d commit 069fc20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fluent-langneg/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fluent-langneg/src/negotiate_languages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ interface NegotiateLanguagesOptions {
4949
* This strategy requires defaultLocale option to be set.
5050
*/
5151
export function negotiateLanguages(
52-
requestedLocales: Array<string>,
53-
availableLocales: Array<string>,
52+
requestedLocales: Readonly<Array<string>>,
53+
availableLocales: Readonly<Array<string>>,
5454
{
5555
strategy = "filtering",
5656
defaultLocale,

0 commit comments

Comments
 (0)