Skip to content

Commit 253d3b4

Browse files
committed
fix: typings
1 parent 267f53b commit 253d3b4

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"type": "git",
77
"url": "https://github.com/telerik/kendo-intl.git"
88
},
9-
"cldr-data-coverage": "full",
9+
"main": "dist/npm/js/main.js",
10+
"typings": "dist/npm/js/main",
1011
"scripts": {
1112
"build-package": "gulp build-npm-package",
1213
"test": "gulp test",

src/cldr.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ export interface DateFormatNameOptions {
22
type: string;
33
nameType: string;
44
lower?: string;
5-
standAlone?: string;
5+
standAlone?: string;
66
}
77

8-
export function dateFormatNames(locale: string, options: DateFormatNameOptions);
8+
export function dateFormatNames(locale: string, options: DateFormatNameOptions) : any;
99
export function firstDay(locale: string): number;
1010
export function load(...data: any[]): void;

src/format.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export function toString(value: string, format: string, locale?: string): string;
2-
export function format(format: string, values: Array<any>, locale?: string): string;
1+
export function toString(value: any, format: string, locale?: string): string;
2+
export function format(format: string, values: Array<any>, locale?: string): string;

src/main.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * from './numbers';
2+
export * from './dates';
3+
export * from './cldr';
4+
export * from './format';
5+

0 commit comments

Comments
 (0)