实现板件倒角

This commit is contained in:
ChenX
2023-07-06 10:23:55 +08:00
parent bf1b1186c1
commit 48e15326a5
261 changed files with 7365 additions and 7161 deletions

View File

@@ -1,3 +1,12 @@
export interface PrototypeType<T> extends Function {
prototype: T;
}
export interface ConstructorFunctionType<T = any> extends PrototypeType<T> {
new (...args: any[]): T;
}
export type ConstructorType<T = unknown, Static extends Record<string, any> = PrototypeType<T>> = (ConstructorFunctionType<T> | PrototypeType<T>) & {
[Key in keyof Static]: Static[Key];
};
/**
* 构造单例类的静态类.
* # Example:
@@ -7,6 +16,6 @@
*/
export declare class Singleton {
protected constructor();
static GetInstance<T = any>(): T;
static GetInstance<T extends Singleton>(this: ConstructorType<T, typeof Singleton>): T;
}
//# sourceMappingURL=Singleton.d.ts.map