Skip to content

Commit f4b0bac

Browse files
committed
Merge pull request DefinitelyTyped#4747 from ccapndave/cuid
cuid: initial commit
2 parents b009ee2 + 1be949c commit f4b0bac

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

cuid/cuid-tests.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
///<reference path='cuid.d.ts' />
2+
3+
import cuid = require('cuid')
4+
5+
var result: string = cuid();

cuid/cuid.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Type definitions for cuid
2+
// Project: https://github.com/ericelliott/cuid
3+
// Definitions by: Dave Keen <http://www.keendevelopment.ch>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
6+
declare module 'cuid' {
7+
function cuid(): string;
8+
9+
export = cuid
10+
}

0 commit comments

Comments
 (0)