UNPKG

411 BTypeScriptView Raw
1export type Class = new (...args: any[]) => any;
2export declare function isInstanceOf<T extends Class>(val: unknown, Clazz: T): val is InstanceType<T>;
3export declare function hasOwnProperty<T extends object>(obj: T, prop: PropertyKey): obj is T & Record<typeof prop, unknown>;
4export declare function hasOwnPropertyInChain<T extends object>(obj: T, prop: PropertyKey): obj is T & Record<typeof prop, unknown>;