mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
// Type definitions for is-uuid 1.0
|
|
// Project: https://github.com/afram/is-uuid#readme
|
|
// Definitions by: André Thériault <https://github.com/tedre191>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* Returns true if the value is a v1 UUID
|
|
* @param value The value to test
|
|
*/
|
|
export function v1(value: string): boolean;
|
|
|
|
/**
|
|
* Returns true if the value is a v2 UUID
|
|
* @param value The value to test
|
|
*/
|
|
export function v2(value: string): boolean;
|
|
|
|
/**
|
|
* Returns true if the value is a v3 UUID
|
|
* @param value The value to test
|
|
*/
|
|
export function v3(value: string): boolean;
|
|
|
|
/**
|
|
* Returns true if the value is a v4 UUID
|
|
* @param value The value to test
|
|
*/
|
|
export function v4(value: string): boolean;
|
|
|
|
/**
|
|
* Returns true if the value is a v5 UUID
|
|
* @param value The value to test
|
|
*/
|
|
export function v5(value: string): boolean;
|
|
|
|
/**
|
|
* Returns true if the value is a nil UUID
|
|
* @param value The value to test
|
|
*/
|
|
export function nil(value: string): boolean;
|
|
|
|
/**
|
|
* Returns true for v1 - v5 UUID. Will return false for nil UUID
|
|
* @param value The value to test
|
|
*/
|
|
export function anyNonNil(value: string): boolean;
|