UNPKG

@selenite/commons

Version:

This typescript package provides a set of frequently used utilities, types and svelte actions for building projects with Typescript and Svelte.

22 lines (21 loc) 643 B
export { v4 as uuidv4, v3 as uuidv3, v5 as uuidv5 } from 'uuid'; /** * @deprecated Use `localId` instead. */ export declare function newLocalId(baseName?: string): string; /** * Generates a new local ID, with an optional prefix. * * Don't use it for persisted IDs. * @param baseName prefix to add to the ID */ export declare function localId(baseName?: string): string; /** * @deprecated Use `uuid` instead. */ export declare function newUuid(baseName?: string): string; /** * Generates a new v4 UUID, with an optional prefix. * @param baseName prefix to add to the UUID */ export declare function uuid(baseName?: string): string;