export interface IGeneratorFn extends GeneratorFunction { readonly [Symbol.toStringTag]: 'GeneratorFunction'; (): IterableIterator; } export interface IsType { string: string; number: number; boolean: boolean; null: null; undefined: undefined | void; symbol: symbol; array: any[]; arguments: IArguments; object: { [propsName: string]: any; }; regexp: RegExp; date: Date; function: (...rest: any[]) => any; promise: Promise; generatorfunction: GeneratorFunction; generator: Generator; asyncfunction: () => Promise; } /** * judgement ele type * @param {string} type the string of ele type for judgement * @param {any} ele the target element * @return {boolean} whether or not ele pair with type */ export declare function isType(type: T): (ele: any) => ele is IsType[T]; export default isType;