diff --git a/sprintf-js/sprintf-js.d.ts b/sprintf-js/sprintf-js.d.ts index fba1925b6c..89377b83d2 100644 --- a/sprintf-js/sprintf-js.d.ts +++ b/sprintf-js/sprintf-js.d.ts @@ -10,7 +10,7 @@ Its prototype is simple: string sprintf(string format , [mixed arg1 [, mixed arg2 [ ,...]]]) */ -declare module "sprintf-js" { +declare module sprintf_js { /** sprintf.js is a complete open source JavaScript sprintf implementation for the browser and node.js. Its prototype is simple: string sprintf(string format , [mixed arg1 [, mixed arg2 [ ,...]]]) @@ -69,3 +69,10 @@ X - yields an integer as a hexadecimal number (upper-case) */ export function vsprintf(fmt: string, args: any[]): string; } + +declare module "sprintf-js" { + export =sprintf_js; +} + +declare var sprintf: typeof sprintf_js.sprintf; +declare var vsprintf: typeof sprintf_js.vsprintf;