UNPKG

@akala/core

Version:
3 lines (2 loc) 372 B
export declare function polymorph(types: ('string' | 'number' | 'boolean' | 'function' | 'object' | 'symbol')[]): <T extends Function>(oldF: T) => any; export declare function Polymorph(types: ('string' | 'number' | 'boolean' | 'function' | 'object' | 'symbol')[]): <T extends Function>(target: any, propertyKey?: string, descriptor?: TypedPropertyDescriptor<T>) => void;