webcad-api/types/Common/Singleton.d.ts

12 lines
287 B
TypeScript
Raw Normal View History

2020-09-24 11:04:12 +08:00
/**
* .
* # Example:
* class A extends Singleton(){};
* //获得单例
* let a = A.GetInstance();
*/
export declare class Singleton {
protected constructor();
static GetInstance<T = any>(): T;
}
//# sourceMappingURL=Singleton.d.ts.map