refactor: introduce bindThis decorator to bind this automaticaly
This commit is contained in:
@@ -15,6 +15,7 @@ export class MockResolver extends Resolver {
|
||||
});
|
||||
}
|
||||
|
||||
@bindThis
|
||||
public async resolve(value: string | IObject): Promise<IObject> {
|
||||
if (typeof value !== 'string') return value;
|
||||
|
||||
|
Reference in New Issue
Block a user