imported 25 definitions from typescript-node-definitions

first batch: the easy pickings

- as per https://github.com/borisyankov/DefinitelyTyped/issues/115
- added DT headers (scraped creators from git history)
- added tests
- some modifications
- added CONTRIBUTORS.md for the substantial defs (>50 LOC)
This commit is contained in:
Bart van der Schoor
2014-04-22 22:09:35 +02:00
parent 033d3ae33e
commit 09f3d7a8dc
51 changed files with 3420 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
/// <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]);
+11
View File
@@ -0,0 +1,11 @@
// Type definitions for sprintff
// Project: https://github.com/maritz/node-sprintff
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/sprintff.d.ts
declare module "sprintf" {
export function sprintf(fmt: string, ...args: any[]): string;
export function vsprintf(fmt: string, args: any[]): string;
}