Class: instance_base
小于 1 分钟
index / instance_base
Class: instance_base
继承单例(类型安全)
Hierarchy
Table of contents
Constructors
Methods
Constructors
constructor
• new instance_base()
Methods
instance
▸ Static
instance<T
>(this
, ...args_as_
): InstanceType
<T
>
单例方法
Type parameters
Name | Type |
---|---|
T | extends (...args_as : any []) => any |
Parameters
Name | Type |
---|---|
this | T |
...args_as_ | ConstructorParameters <T > |
Returns
InstanceType
<T
>