npm install --save @types/chai-uuid
This package contains type definitions for chai-uuid (https://github.com/rfrench/chai-uuid).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-uuid.
/// <reference types="chai" />
declare global {
namespace Chai {
type UuidVersion = "v1" | "v2" | "v3" | "v4" | "v5" | "";
interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
uuid(uuid?: UuidVersion): void;
guid(guid?: any): void;
}
interface Assert {
uuid(uuid: string, version?: UuidVersion): void;
guid(guid: string, version?: any): void;
}
}
}
declare const chaiUuid: Chai.ChaiPlugin;
export = chaiUuid;
- Last updated: Fri, 01 Mar 2024 00:50:47 GMT
- Dependencies: @types/chai
These definitions were written by Harm van der Werf.