diff --git a/cuid/cuid-tests.ts b/cuid/cuid-tests.ts new file mode 100644 index 000000000..033f9ea83 --- /dev/null +++ b/cuid/cuid-tests.ts @@ -0,0 +1,5 @@ +/// + +import cuid = require('cuid') + +var result: string = cuid(); \ No newline at end of file diff --git a/cuid/cuid.d.ts b/cuid/cuid.d.ts new file mode 100644 index 000000000..0ba27cee7 --- /dev/null +++ b/cuid/cuid.d.ts @@ -0,0 +1,10 @@ +// Type definitions for cuid +// Project: https://github.com/ericelliott/cuid +// Definitions by: Dave Keen +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module 'cuid' { + function cuid(): string; + + export = cuid +}