UNPKG

572 BTypeScriptView Raw
1/**
2 * The namespace for UUID related functionality.
3 */
4export declare namespace UUID {
5 /**
6 * A function which generates UUID v4 identifiers.
7 *
8 * @returns A new UUID v4 string.
9 *
10 * #### Notes
11 * This implementation complies with RFC 4122.
12 *
13 * This uses `Random.getRandomValues()` for random bytes, which in
14 * turn will use the underlying `crypto` module of the platform if
15 * it is available. The fallback for randomness is `Math.random`.
16 */
17 const uuid4: () => string;
18}
19//# sourceMappingURL=uuid.node.d.ts.map
\No newline at end of file