12 lines
451 B
TypeScript
12 lines
451 B
TypeScript
/**
|
|
* Allows you to hoist static functions in components.
|
|
* Created for the purpose of fixing broken static functions in classes
|
|
* that utilize decorators.
|
|
*
|
|
* @public
|
|
* @param source - The object where the methods are hoisted from.
|
|
* @param dest - The object to hoist the methods onto.
|
|
* @returns The dest object with methods added
|
|
*/
|
|
export declare function hoistStatics<TSource extends Object, TDest>(source: TSource, dest: TDest): TDest;
|