typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
15 lines (10 loc) • 304 B
text/typescript
/// <reference path="sprintf.d.ts" />
import sprintf = require('sprintf');
var str: string;
var num: number;
sprintf.sprintf(str, str);
sprintf.sprintf(str, str, num);
sprintf.sprintf(str, num, str);
sprintf.vsprintf(str, [str]);
sprintf.vsprintf(str, [str, num]);
sprintf.vsprintf(str, [num, str]);