mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
@@ -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]);
|
||||
Vendored
+11
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user