UNPKG

noodl-utils

Version:

Utility/helpers for working with NOODL values

11 lines (10 loc) 607 B
import { QueryObj } from './types'; export declare const array: <O extends any[], P extends O[number]>(o: P | P[]) => P[]; export declare const isArr: (v: any) => v is any[]; export declare const isBool: (v: any) => v is boolean; export declare const isObj: (v: any) => v is Record<string, any>; export declare const isNum: (v: any) => v is number; export declare const isStr: (v: any) => v is string; export declare const isUnd: (v: any) => v is undefined; export declare const isFnc: <V extends (...args: any[]) => any>(v: any) => v is V; export declare const unwrapObj: (obj: QueryObj) => any;