intl-messageformat-parser
Advanced tools
Comparing version
@@ -1,3 +0,2 @@ | ||
import { NumberSkeletonToken } from './types'; | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import { ExtendedNumberFormatOptions, NumberSkeletonToken } from './types'; | ||
export interface ExtendedDateTimeFormatOptions extends Intl.DateTimeFormatOptions { | ||
@@ -16,3 +15,3 @@ hourCycle?: 'h11' | 'h12' | 'h23' | 'h24'; | ||
*/ | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): NumberFormatOptions; | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): ExtendedNumberFormatOptions; | ||
//# sourceMappingURL=skeleton.d.ts.map |
@@ -255,2 +255,5 @@ import { __assign } from "tslib"; | ||
continue; | ||
case 'scale': | ||
result.scale = parseFloat(token.options[0]); | ||
continue; | ||
} | ||
@@ -257,0 +260,0 @@ // Precision |
@@ -0,1 +1,5 @@ | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
export interface ExtendedNumberFormatOptions extends NumberFormatOptions { | ||
scale?: number; | ||
} | ||
export declare enum TYPE { | ||
@@ -103,3 +107,3 @@ /** | ||
location?: Location; | ||
parsedOptions: Intl.NumberFormatOptions; | ||
parsedOptions: ExtendedNumberFormatOptions; | ||
} | ||
@@ -106,0 +110,0 @@ export interface DateTimeSkeleton { |
{ | ||
"name": "intl-messageformat-parser", | ||
"version": "6.0.18", | ||
"version": "6.1.0", | ||
"description": "Parses ICU Message strings into an AST via JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,3 +0,2 @@ | ||
import { NumberSkeletonToken } from './types'; | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import { ExtendedNumberFormatOptions, NumberSkeletonToken } from './types'; | ||
export interface ExtendedDateTimeFormatOptions extends Intl.DateTimeFormatOptions { | ||
@@ -16,3 +15,3 @@ hourCycle?: 'h11' | 'h12' | 'h23' | 'h24'; | ||
*/ | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): NumberFormatOptions; | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): ExtendedNumberFormatOptions; | ||
//# sourceMappingURL=skeleton.d.ts.map |
@@ -259,2 +259,5 @@ "use strict"; | ||
continue; | ||
case 'scale': | ||
result.scale = parseFloat(token.options[0]); | ||
continue; | ||
} | ||
@@ -261,0 +264,0 @@ // Precision |
@@ -0,1 +1,5 @@ | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
export interface ExtendedNumberFormatOptions extends NumberFormatOptions { | ||
scale?: number; | ||
} | ||
export declare enum TYPE { | ||
@@ -103,3 +107,3 @@ /** | ||
location?: Location; | ||
parsedOptions: Intl.NumberFormatOptions; | ||
parsedOptions: ExtendedNumberFormatOptions; | ||
} | ||
@@ -106,0 +110,0 @@ export interface DateTimeSkeleton { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
300043
0.22%7856
0.15%