forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
precond.d.ts
17 lines (16 loc) · 1.15 KB
/
precond.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Type definitions for precond 0.2.3
// Project: https://github.com/MathieuTurcotte/node-precond
// Definitions by: Oliver Schneider <https://github.com/olsio>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "precond" {
export function checkArgument(value: any, message?: string, ...formatArgs: any[]): void;
export function checkState(value: any, message?: string, ...formatArgs: any[]): void;
export function checkIsDef(value: any, message?: string, ...formatArgs: any[]): any;
export function checkIsDefAndNotNull(value: any, message?: string, ...formatArgs: any[]): any;
export function checkIsString(value: any, message?: string, ...formatArgs: any[]): any;
export function checkIsArray(value: any, message?: string, ...formatArgs: any[]): any;
export function checkIsNumber(value: any, message?: string, ...formatArgs: any[]): any;
export function checkIsBoolean(value: any, message?: string, ...formatArgs: any[]): any;
export function checkIsFunction(value: any, message?: string, ...formatArgs: any[]): any;
export function checkIsObject(value: any, message?: string, ...formatArgs: any[]): any;
}