@backgroundjs/core
Version:
An extendible background job queue for js/ts applications
10 lines • 423 B
TypeScript
/**
* Generates a random string of specified length with given character set
* Compatible with all JavaScript runtimes (Node.js, Deno, Bun, browsers)
*
* @param length The length of the ID to generate
* @param chars Character set to use (defaults to alphanumeric)
* @returns A random ID string
*/
export declare function generateId(length?: number, chars?: string): string;
//# sourceMappingURL=id-generator.d.ts.map