mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
653 B
TypeScript
22 lines
653 B
TypeScript
// Type definitions for elv 2.2
|
|
// Project: https://github.com/dsfields/elv#readme
|
|
// Definitions by: Gary Parker <https://github.com/garyaparker>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function elv(val: any): boolean;
|
|
|
|
declare namespace elv {
|
|
const behavior: {
|
|
enableFalse: boolean
|
|
enableNaN: boolean
|
|
enableNull: boolean
|
|
enableUndefined: boolean
|
|
};
|
|
function coalesce(...args: any[]): any;
|
|
function ncoalesce(...args: any[]): any;
|
|
function populated(val: any): boolean;
|
|
function tryGet(val: ReadonlyArray<any>, index: number, def?: any): any;
|
|
}
|
|
|
|
export = elv;
|