mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
typings for precond library added
This commit is contained in:
Vendored
+17
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user