UNPKG
trusktr-dummy-test-pkg
Version:
latest (0.0.3)
0.0.3
0.0.2
JavaScript/TypeScript class inheritance tools.
github.com/trusktr/lowclass
trusktr/lowclass
trusktr-dummy-test-pkg
/
native.d.ts
9 lines
(8 loc)
•
269 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Constructor
}
from
'./utils.js'
;
export
{ newless
as
native };
export
default
newless;
declare
type
FuncLikeCtor
<T, S = {}> = { (): T;
new
(): T; } & S;
declare
function
newless<T
extends
Constructor
>(
constructor
: T):
FuncLikeCtor
<
InstanceType
<T>, T>;