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

0.2.31 • Public • Published

Installation

npm install --save @types/precond

Summary

This package contains type definitions for precond (https://github.com/MathieuTurcotte/node-precond).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/precond.

index.d.ts

export declare function checkArgument(value: any, message?: string, ...formatArgs: any[]): void;
export declare function checkState(value: any, message?: string, ...formatArgs: any[]): void;
export declare function checkIsDef(value: any, message?: string, ...formatArgs: any[]): any;
export declare function checkIsDefAndNotNull(value: any, message?: string, ...formatArgs: any[]): any;
export declare function checkIsString(value: any, message?: string, ...formatArgs: any[]): any;
export declare function checkIsArray(value: any, message?: string, ...formatArgs: any[]): any;
export declare function checkIsNumber(value: any, message?: string, ...formatArgs: any[]): any;
export declare function checkIsBoolean(value: any, message?: string, ...formatArgs: any[]): any;
export declare function checkIsFunction(value: any, message?: string, ...formatArgs: any[]): any;
export declare function checkIsObject(value: any, message?: string, ...formatArgs: any[]): any;

Additional Details

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

Credits

These definitions were written by Oliver Schneider.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/precond

Weekly Downloads

733

Version

0.2.31

License

MIT

Unpacked Size

4.46 kB

Total Files

5

Last publish

Collaborators

  • types