@travetto/registry
Advanced tools
Comparing version 0.0.36 to 0.0.37
@@ -18,3 +18,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.36" | ||
"version": "0.0.37" | ||
} |
@@ -55,2 +55,8 @@ import { Class } from '../model/types'; | ||
verifyInitialized() { | ||
if (!this.resolved) { | ||
throw new Error(`${this.constructor.name} has not been initialized, you probably need to call RootRegistry.init()`); | ||
} | ||
} | ||
async init(): Promise<any> { | ||
@@ -57,0 +63,0 @@ if (!this.initialized) { |
17516
500