Skip to content

Commit

Permalink
Refine the type script definition files
Browse files Browse the repository at this point in the history
  • Loading branch information
hason-msft committed Sep 21, 2016
1 parent 2f58ea0 commit 80d5930
Show file tree
Hide file tree
Showing 11 changed files with 8,497 additions and 27,889 deletions.
14 changes: 14 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "es6",
"sourceMap": true,
"outDir": "built",
"noEmitOnError": true,
"module": "commonjs"
},
"exclude": [
"node_modules",
"built",
"docs"
]
}
6 changes: 6 additions & 0 deletions typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"globalDependencies": {
"node": "registry:env/node#0.10.0+20160918225031",
"node-uuid": "registry:dt/node-uuid#0.0.0+20160316155526"
}
}
16,287 changes: 8,141 additions & 8,146 deletions typings/azure-storage/azure-storage.d.ts

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions typings/globals/node-uuid/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/node-uuid/node-uuid.d.ts
declare module __NodeUUID {
/**
* Overloads for node environment
* We need to duplicate some declarations because
* interface merging doesn't work with overloads
*/
interface UUID {
v1(options?: UUIDOptions): string;
v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[];
v1(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer;

v4(options?: UUIDOptions): string;
v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[];
v4(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer;

parse(id: string, buffer?: number[], offset?: number): number[];
parse(id: string, buffer?: Buffer, offset?: number): Buffer;

unparse(buffer: number[], offset?: number): string;
unparse(buffer: Buffer, offset?: number): string;
}
}
8 changes: 8 additions & 0 deletions typings/globals/node-uuid/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/node-uuid/node-uuid.d.ts",
"raw": "registry:dt/node-uuid#0.0.0+20160316155526",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/node-uuid/node-uuid.d.ts"
}
}
Loading

0 comments on commit 80d5930

Please sign in to comment.