forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imported 25 definitions from typescript-node-definitions
first batch: the easy pickings - as per DefinitelyTyped#115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
- Loading branch information
Showing
51 changed files
with
3,420 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/// <reference path="atpl.d.ts" /> | ||
|
||
import atpl = require('atpl'); | ||
|
||
var bool: boolean; | ||
var str: string; | ||
var err: Error; | ||
var items: any; | ||
var options: Object; | ||
var callback: Function; | ||
|
||
atpl.compile(str, options); | ||
atpl.__express(str, options, callback); | ||
|
||
atpl.registerExtension(items); | ||
atpl.registerTags(items); | ||
atpl.registerFunctions(items); | ||
atpl.registerFilters(items); | ||
atpl.registerTests(items); | ||
|
||
atpl.registerTags(null); | ||
atpl.renderFile(str, str, options, bool, (e, res?) => { | ||
err = err; | ||
str = res; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Type definitions for atpl | ||
// Project: https://github.com/soywiz/atpl.js | ||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
// Imported from: https://github.com/soywiz/typescript-node-definitions/atpl.d.ts | ||
|
||
declare module "atpl" { | ||
export function compile(templateString: string, options: any): (context:any) => string; | ||
export function __express(filename: string, options: any, callback: Function): any; | ||
|
||
export function registerExtension(items: any): void; | ||
export function registerTags(items: any): void; | ||
export function registerFunctions(items: any): void; | ||
export function registerFilters(items: any): void; | ||
export function registerTests(items: any): void; | ||
|
||
export function renderFileSync(viewsPath: string, filename: string, parameters: any, cache: boolean ): string; | ||
export function renderFile(viewsPath: string, filename: string, parameters: any, cache: boolean, done: (err: Error, result?: string) => void): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// <reference path="aws-sdk.d.ts" /> | ||
|
||
import awsSdk = require('aws-sdk'); | ||
|
||
var str: string; | ||
|
||
var creds: awsSdk.Credentials; | ||
|
||
creds = new awsSdk.Credentials(str, str); | ||
creds = new awsSdk.Credentials(str, str, str); | ||
str = creds.accessKeyId; | ||
|
||
// more |
Oops, something went wrong.