UNPKG
typeorm-stubs
Version:
latest (1.2.1)
1.2.1
1.1.0
1.0.1
1.0.0
Stubs generator for Typeorm entities
github.com/superclaw/typeorm-stubs
superclaw/typeorm-stubs
typeorm-stubs
/
singleton.d.ts
6 lines
(5 loc)
•
228 B
TypeScript
View Raw
1
2
3
4
5
6
import
{
ObjectType
}
from
'./interfaces'
;
export
declare
abstract
class
Singleton
{
protected
static
instance
:
Singleton
;
static
getInstance<T
extends
Singleton
, P =
unknown
>(
this
:
ObjectType
<T, P>, ...
args
: P[]): T; }