Files
starface-outlook-sync-addin/node_modules/@fluentui/utilities/lib/hoistStatics.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

20 lines
661 B
JavaScript

/**
* 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 function hoistStatics(source, dest) {
for (var name_1 in source) {
if (source.hasOwnProperty(name_1)) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dest[name_1] = source[name_1];
}
}
return dest;
}
//# sourceMappingURL=hoistStatics.js.map