@formatjs/intl-getcanonicallocales 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- //#region packages/intl-getcanonicallocales/types.d.ts
2
1
  export interface UnicodeLocaleId {
3
2
  lang: UnicodeLanguageId;
4
3
  extensions: Array<UnicodeExtension | TransformedExtension | PuExtension | OtherExtension>;
@@ -31,12 +30,8 @@ export interface OtherExtension extends Extension {
31
30
  type: "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "v" | "w" | "y" | "z";
32
31
  value: string;
33
32
  }
34
- //#endregion
35
- //#region packages/intl-getcanonicallocales/emitter.d.ts
36
33
  export declare function emitUnicodeLanguageId(lang?: UnicodeLanguageId): string;
37
34
  export declare function emitUnicodeLocaleId({ lang, extensions }: UnicodeLocaleId): string;
38
- //#endregion
39
- //#region packages/intl-getcanonicallocales/parser.d.ts
40
35
  export declare function isUnicodeLanguageSubtag(lang: string): boolean;
41
36
  export declare function isStructurallyValidLanguageTag(tag: string): boolean;
42
37
  export declare function isUnicodeRegionSubtag(region: string): boolean;
@@ -44,11 +39,5 @@ export declare function isUnicodeScriptSubtag(script: string): boolean;
44
39
  export declare function isUnicodeVariantSubtag(variant: string): boolean;
45
40
  export declare function parseUnicodeLanguageId(chunks: string[] | string): UnicodeLanguageId;
46
41
  export declare function parseUnicodeLocaleId(locale: string): UnicodeLocaleId;
47
- //#endregion
48
- //#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.core@0.0.0/node_modules/@formatjs_generated/cldr.core/likelySubtags.d.ts
49
42
  export declare const likelySubtags: Record<string, string>;
50
- //#endregion
51
- //#region packages/intl-getcanonicallocales/index.d.ts
52
- export declare function getCanonicalLocales(locales?: string[] | string | Intl.Locale | Intl.Locale[] | ArrayLike<string | Intl.Locale>): string[];
53
- //#endregion
54
- //# sourceMappingURL=index.d.ts.map
43
+ export declare function getCanonicalLocales(locales?: string[] | string | Intl.Locale | Intl.Locale[] | ArrayLike<string | Intl.Locale>): string[];