add require module

This commit is contained in:
pengfei.zhou
2019-07-18 18:29:47 +08:00
parent 13c5719af1
commit 723c5455ab
9 changed files with 88 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ export function Registor<T extends { new(...args: any[]): {} }>(constructor: T)
const ret = class extends constructor {
context = context
}
context.registor(new ret)
context.register(new ret)
return ret
}