| 123456789101112131415161718192021222324252627 |
- declare function hyperid(opts?: boolean | hyperid.Options): hyperid.Instance
- declare namespace hyperid {
- const decode: hyperid.decode
- interface Options {
- urlSafe?: boolean
- fixedLength?: boolean
- startFrom?: number
- maxInt?: number
- }
- interface Instance {
- (): string
- decode: hyperid.decode
- uuid: string
- }
- type decode = (id: string, opts?: hyperid.Options) => hyperid.IdObject
- interface IdObject {
- uuid: string
- count: number
- }
- }
- export = hyperid
|