sat-utils
Version:
9 lines (8 loc) • 380 B
TypeScript
/**
* Wraps a constructor function as a singleton to ensure only one instance is created.
*
* @param {Function} ctro - The constructor function to be wrapped as a singleton.
* @returns {Function} A function that, when called, returns the single instance of the constructor.
*/
declare function wrapAsSingleton(ctro: any): (...args: any[]) => any;
export { wrapAsSingleton };