yatta
This commit is contained in:
parent
80e5645a84
commit
e66d7babc5
56 changed files with 115 additions and 112 deletions
|
|
@ -12,7 +12,7 @@ export default class Resolver {
|
|||
this.history = new Set();
|
||||
}
|
||||
|
||||
public async resolveCollection(value) {
|
||||
public async resolveCollection(value: any) {
|
||||
const collection = typeof value === 'string'
|
||||
? await this.resolve(value)
|
||||
: value;
|
||||
|
|
@ -33,7 +33,7 @@ export default class Resolver {
|
|||
return collection;
|
||||
}
|
||||
|
||||
public async resolve(value): Promise<IObject> {
|
||||
public async resolve(value: any): Promise<IObject> {
|
||||
if (value == null) {
|
||||
throw new Error('resolvee is null (or undefined)');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue