UNPKG
dynamicl
Version:
latest (1.0.0)
1.0.0
A library for auto-detecting and loading classes
dynamicl
/
dist
/
index.d.ts
10 lines
(9 loc)
•
301 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
'reflect-metadata'
;
export
declare
abstract
class
Detectable
{
name
:
string
;
constructor
(
name
:
string
); }
export
declare
function
autodetect<T
extends
Detectable
>(
options
: {
baseClass
:
new
(...
args
:
any
[]) => T;
location
:
string
; }):
(
target
:
any
,
propertyKey
:
string
) =>
void
;