UNPKG

451 BTypeScriptView Raw
1/**
2 * Allows you to hoist static functions in components.
3 * Created for the purpose of fixing broken static functions in classes
4 * that utilize decorators.
5 *
6 * @public
7 * @param source - The object where the methods are hoisted from.
8 * @param dest - The object to hoist the methods onto.
9 * @returns The dest object with methods added
10 */
11export declare function hoistStatics<TSource extends Object, TDest>(source: TSource, dest: TDest): TDest;