@types/is-uuid
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/is-uuid

Summary

This package contains type definitions for is-uuid (https://github.com/afram/is-uuid#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-uuid.

index.d.ts

/**
 * 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;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by André Thériault.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/is-uuid

Weekly Downloads

21,466

Version

1.0.2

License

MIT

Unpacked Size

4.4 kB

Total Files

5

Last publish

Collaborators

  • types