Improve and activate groups
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
17
js/src/typings/intl.d.ts
vendored
Normal file
17
js/src/typings/intl.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
declare namespace Intl {
|
||||
type Locale = string;
|
||||
type Locales = Locale[];
|
||||
type Type = "conjunction" | "disjunction" | "unit";
|
||||
type Style = "long" | "short" | "narrow";
|
||||
type LocaleMatcher = "lookup" | "best fit";
|
||||
interface ListFormatOptions {
|
||||
type: Type;
|
||||
style: Style;
|
||||
localeMatcher: LocaleMatcher;
|
||||
}
|
||||
|
||||
class ListFormat {
|
||||
constructor(locales?: Locale | Locales | undefined, options?: Partial<ListFormatOptions>);
|
||||
public format: (items: string[]) => string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user