@formatjs/intl-listformat
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -1,4 +0,1 @@ | ||
import { ListPatternFieldsData } from '@formatjs/intl-utils'; | ||
import { ListPatternLocaleData } from '@formatjs/intl-utils'; | ||
import { LiteralPart } from '@formatjs/intl-utils'; | ||
@@ -53,2 +50,35 @@ export declare interface ElementPart { | ||
declare interface ListPattern { | ||
start: string; | ||
middle: string; | ||
end: string; | ||
pair: string; | ||
} | ||
declare interface ListPatternData { | ||
long: ListPattern; | ||
short?: ListPattern; | ||
narrow?: ListPattern; | ||
} | ||
declare interface ListPatternFieldsData { | ||
conjunction?: ListPatternData; | ||
disjunction?: ListPatternData; | ||
unit?: ListPatternData; | ||
} | ||
declare type ListPatternLocaleData = LocaleData<ListPatternFieldsData>; | ||
declare interface LiteralPart { | ||
type: 'literal'; | ||
value: string; | ||
} | ||
declare type Locale = string; | ||
declare interface LocaleData<T> { | ||
data: Record<Locale, T>; | ||
availableLocales: string[]; | ||
} | ||
export declare type Part = LiteralPart | ElementPart; | ||
@@ -55,0 +85,0 @@ |
{ | ||
"name": "@formatjs/intl-listformat", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Formats JS list in a i18n-safe way", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
984695
4797