Missing locale functions and types (#8981)

* added svgRendering property to Html2CanvasOptions interface

* added an empty namespace in koa-bodyparser.d.ts (#8979)

Without this, there will be `Module '"koa-bodyparser"' resolves to a non-module entity and cannot be imported using this construct. (2497)` error
This solution is found (here)[https://github.com/Microsoft/TypeScript/issues/5073].
koa-json's `.d.ts` file has such namespace.

* Missing locale functions and types
This commit is contained in:
Dennis
2016-04-17 21:13:33 +07:00
committed by Masahiro Wakame
parent e4ddeda801
commit bfc96c0e34

View File

@@ -106,6 +106,10 @@ interface KnockoutValidationGroup {
isAnyMessageShown?: () => boolean;
}
interface KnockoutValidationLocalizationDictionary {
[key: string]: string;
}
interface KnockoutValidationStatic {
init(options?: KnockoutValidationConfiguration, force?: boolean): void;
reset(): void;
@@ -127,7 +131,9 @@ interface KnockoutValidationStatic {
registerExtenders(): void;
utils: KnockoutValidationUtils;
localize(msgTranslations: any): void;
localize(msgTranslations: KnockoutValidationLocalizationDictionary): void;
defineLocale(newLocale: string, msgTranslations: KnockoutValidationLocalizationDictionary): KnockoutValidationLocalizationDictionary;
locale(newLocale: string): string;
validateObservable(observable: KnockoutObservable<any>): boolean;
}