UNPKG
sinotron
Version:
latest (0.1.0-alpha)
0.1.0-alpha
0.0.3-alpha
0.0.1-dev
0.0.1-alpha
Simple framework for Typescript Electron projects
sinotron
/
dist
/
lib
/
instantiate.d.ts
9 lines
(8 loc)
•
187 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
type Cls
<
T
=
any
>
=
{
new
(
...args
:
any
[
]
)
:
T
;
}
; export declare const Instance
:
{
get
<
T
>
(
c
:
Cls
<
T
>
,
...args
:
any
)
:
T
; singleton
<
T
>
(
c
:
Cls
<
T
>
,
...args
:
any
)
:
T
;
}
; export
{
}
;