mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
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:
8
knockout.validation/knockout.validation.d.ts
vendored
8
knockout.validation/knockout.validation.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user