@formatjs/intl-utils
Advanced tools
Comparing version 3.7.0 to 3.8.0
@@ -1,2 +0,1 @@ | ||
import { LDMLPluralRule } from './plural-rules-types'; | ||
import { LocaleData } from './types'; | ||
@@ -92,3 +91,3 @@ export declare type NumberFormatNotation = 'standard' | 'scientific' | 'engineering' | 'compact'; | ||
} | ||
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<LDMLPluralRule, T>>, 'other'> & { | ||
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<Intl.LDMLPluralRule, T>>, 'other'> & { | ||
other: T; | ||
@@ -95,0 +94,0 @@ }; |
import { LocaleData } from './types'; | ||
export declare type LDMLPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other'; | ||
export interface PluralRulesData { | ||
@@ -8,5 +7,5 @@ categories: { | ||
}; | ||
fn: (val: number | string, ord?: boolean) => LDMLPluralRule; | ||
fn: (val: number | string, ord?: boolean) => Intl.LDMLPluralRule; | ||
} | ||
export declare type PluralRulesLocaleData = LocaleData<PluralRulesData>; | ||
//# sourceMappingURL=plural-rules-types.d.ts.map |
import { LocaleData } from './types'; | ||
import { LDMLPluralRule } from './plural-rules-types'; | ||
export interface FieldData { | ||
@@ -15,3 +14,3 @@ '0'?: string; | ||
declare type RelativeTimeData = { | ||
[u in LDMLPluralRule]?: string; | ||
[u in Intl.LDMLPluralRule]?: string; | ||
}; | ||
@@ -18,0 +17,0 @@ export declare type UnpackedLocaleFieldsData = { |
{ | ||
"name": "@formatjs/intl-utils", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "Smartly determine best unit for relative time format", | ||
@@ -25,7 +25,2 @@ "keywords": [ | ||
"types": "intl-utils.d.ts", | ||
"files": [ | ||
"lib", | ||
"src", | ||
"*.js" | ||
], | ||
"homepage": "https://github.com/formatjs/formatjs", | ||
@@ -32,0 +27,0 @@ "license": "MIT", |
@@ -1,2 +0,1 @@ | ||
import { LDMLPluralRule } from './plural-rules-types'; | ||
import { LocaleData } from './types'; | ||
@@ -92,3 +91,3 @@ export declare type NumberFormatNotation = 'standard' | 'scientific' | 'engineering' | 'compact'; | ||
} | ||
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<LDMLPluralRule, T>>, 'other'> & { | ||
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<Intl.LDMLPluralRule, T>>, 'other'> & { | ||
other: T; | ||
@@ -95,0 +94,0 @@ }; |
import { LocaleData } from './types'; | ||
export declare type LDMLPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other'; | ||
export interface PluralRulesData { | ||
@@ -8,5 +7,5 @@ categories: { | ||
}; | ||
fn: (val: number | string, ord?: boolean) => LDMLPluralRule; | ||
fn: (val: number | string, ord?: boolean) => Intl.LDMLPluralRule; | ||
} | ||
export declare type PluralRulesLocaleData = LocaleData<PluralRulesData>; | ||
//# sourceMappingURL=plural-rules-types.d.ts.map |
import { LocaleData } from './types'; | ||
import { LDMLPluralRule } from './plural-rules-types'; | ||
export interface FieldData { | ||
@@ -15,3 +14,3 @@ '0'?: string; | ||
declare type RelativeTimeData = { | ||
[u in LDMLPluralRule]?: string; | ||
[u in Intl.LDMLPluralRule]?: string; | ||
}; | ||
@@ -18,0 +17,0 @@ export declare type UnpackedLocaleFieldsData = { |
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
110866
53
2833