You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
371 B

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;