mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Changed cuid to a variable and added slug method to it. (#15793)
* Changed cuid to a variable and added slug method to it. * Reverted change
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
import cuid = require('cuid')
|
||||
import cuid = require('cuid');
|
||||
|
||||
var result: string = cuid();
|
||||
var cuidResult: string = cuid();
|
||||
var slugResult: string = cuid.slug();
|
||||
|
||||
Vendored
+8
-5
@@ -1,9 +1,12 @@
|
||||
// Type definitions for cuid
|
||||
// Type definitions for cuid v1.3.8
|
||||
// Project: https://github.com/ericelliott/cuid
|
||||
// Definitions by: Dave Keen <http://www.keendevelopment.ch>
|
||||
// Definitions by: Dave Keen <http://www.keendevelopment.ch>, João Forja <http://discipliningcode.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface CUID {
|
||||
(): string;
|
||||
slug: () => string;
|
||||
}
|
||||
declare var cuid: CUID;
|
||||
|
||||
declare function cuid(): string;
|
||||
|
||||
export = cuid
|
||||
export = cuid;
|
||||
Reference in New Issue
Block a user