wip
This commit is contained in:
parent
a6abcd1aa5
commit
5f8ab58446
4 changed files with 62 additions and 53 deletions
|
|
@ -33,6 +33,10 @@ export default class Resolver {
|
|||
}
|
||||
|
||||
public async resolve(value): Promise<IObject> {
|
||||
if (value == null) {
|
||||
throw new Error('resolvee is null (or undefined)');
|
||||
}
|
||||
|
||||
if (typeof value !== 'string') {
|
||||
return value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue