element-pro-components
Version:
a component library for Vue 3 base on element-plus
42 lines (41 loc) • 1.14 kB
TypeScript
import type { VNode } from 'vue';
import type { IDefinePlugin, ExternalParam } from '../types/index';
/**
* Check the integrity of the url
* @param url isURL
*/
export declare function isURL(url: string): boolean;
/**
* whether is array
* @param value value
*/
export declare function isArray(value: unknown): value is ExternalParam[];
/**
* whether is undefined
* @param value value
*/
export declare function isUndefined(value: unknown): value is undefined;
/**
* Find the first matching Node by name from a VNode list
* @param list VNode list
* @param name matching name
*/
export declare function findNodeByName(list: VNode[] | undefined, name: string): VNode | undefined;
/**
* add install function for plugin
* @param plugin the vue components and plugin
*/
export declare function withInstall<T extends {
name: string;
}>(plugin: T): IDefinePlugin<T>;
/**
* throw a warn
* @param err warn message
*/
export declare function throwWarn(err: string): void;
/**
* add a point between two parameters
* @param first
* @param last
*/
export declare function withPoint(first?: string, last?: string): string;