-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathintlPluralRulesSelectRangeES2023.types
More file actions
41 lines (37 loc) · 1.31 KB
/
intlPluralRulesSelectRangeES2023.types
File metadata and controls
41 lines (37 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//// [tests/cases/conformance/es2023/intlPluralRulesSelectRangeES2023.ts] ////
=== intlPluralRulesSelectRangeES2023.ts ===
const pr = new Intl.PluralRules("en-US");
>pr : Intl.PluralRules
> : ^^^^^^^^^^^^^^^^
>new Intl.PluralRules("en-US") : Intl.PluralRules
> : ^^^^^^^^^^^^^^^^
>Intl.PluralRules : Intl.PluralRulesConstructor
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Intl : typeof Intl
> : ^^^^^^^^^^^
>PluralRules : Intl.PluralRulesConstructor
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>"en-US" : "en-US"
> : ^^^^^^^
const category = pr.selectRange(1, 2);
>category : Intl.LDMLPluralRule
> : ^^^^^^^^^^^^^^^^^^^
>pr.selectRange(1, 2) : Intl.LDMLPluralRule
> : ^^^^^^^^^^^^^^^^^^^
>pr.selectRange : (start: number, end: number) => Intl.LDMLPluralRule
> : ^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^
>pr : Intl.PluralRules
> : ^^^^^^^^^^^^^^^^
>selectRange : (start: number, end: number) => Intl.LDMLPluralRule
> : ^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^
>1 : 1
> : ^
>2 : 2
> : ^
const exact: Intl.LDMLPluralRule = category;
>exact : Intl.LDMLPluralRule
> : ^^^^^^^^^^^^^^^^^^^
>Intl : any
> : ^^^
>category : Intl.LDMLPluralRule
> : ^^^^^^^^^^^^^^^^^^^