mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
209 B
TypeScript
9 lines
209 B
TypeScript
interface NanoidAsync {
|
|
(size?: number): Promise<string>;
|
|
(size: number | null, callback: (error: Error | null, id: string) => any): void;
|
|
}
|
|
|
|
declare const nanoidAsync: NanoidAsync;
|
|
|
|
export = nanoidAsync;
|