UNPKG

@antdv/pro-utils

Version:

@antdv/pro-utils

31 lines (30 loc) 1.82 kB
import type { VNode } from 'vue'; export declare function isNumeric(value: any): boolean; export declare function isNil(value: any): value is null | undefined; export declare function isValidValue(val: any): boolean; export declare function isValid(value: any): boolean; export declare function isWindow(obj: any): obj is Window; export declare function isFunction(value: any): value is (...args: any[]) => any; export declare const isArray: (arg: any) => arg is any[]; export declare const isString: (val: any) => val is string; export declare const isSymbol: (val: any) => val is symbol; export declare const isObject: (val: any) => val is Record<string, unknown>; export declare function isFragment(node: VNode): boolean; export declare function isFragment(node: unknown): node is VNode; export declare function isText(node: VNode): boolean; export declare function isText(node: unknown): node is VNode; export declare function isComment(node: VNode): boolean; export declare function isComment(node: unknown): node is VNode; export declare function isTemplate(node: VNode): boolean; export declare function isTemplate(node: unknown): node is VNode; export declare function isValidElementNode(node: VNode): boolean; export declare function isValidElementNode(node: unknown): node is VNode; export declare function isEmptyContent(c: any): boolean; export declare function isEmptyElement(c: any): any; export declare function isEmptySlot(c: any): any; export declare function isStringElement(c: any): any; export declare function isValidElement(element: any): any; export declare function isVisible(element: HTMLElement | SVGGraphicsElement): boolean; export declare function isImg(path: string): boolean; export declare function isUrl(path: string | undefined): boolean; export declare function isBrowser(): boolean;