Files
DefinitelyTyped/types/lil-uuid/index.d.ts
2017-10-30 15:02:31 +03:00

20 lines
540 B
TypeScript

// Type definitions for lil-uuid 0.1
// Project: https://github.com/lil-js/uuid
// Definitions by: Pr1st0n <https://github.com/Pr1st0n>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Generate a random UUID
*
* @returns UUID string.
*/
export function uuid(): string;
/**
* Check if a given string has a valid UUID format. It supports multiple version (3, 4 and 5).
*
* @param uuid UUID string.
* @returns True if string is valid UUID, false otherwise.
*/
export function isUUID(uuid: string): boolean;