From 1be949cd9c3757bc996634473312572af74c31e8 Mon Sep 17 00:00:00 2001 From: Dave Keen Date: Wed, 3 Jun 2015 15:20:05 +0200 Subject: [PATCH] cuid: initial commit --- cuid/cuid-tests.ts | 5 +++++ cuid/cuid.d.ts | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 cuid/cuid-tests.ts create mode 100644 cuid/cuid.d.ts 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 +}