File size: 371 Bytes
2a1c46d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
declare namespace cuid2 {
  export function getConstants(): {
    defaultLength: number
    bigLength: number
  }

  export function init(options?: {
    random?: () => number
    counter?: () => number
    length?: number
    fingerprint?: string
  }): () => string

  export function isCuid(id: string): boolean

  export function createId(): string
}

export = cuid2;