mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-02 17:00:07 +09:00
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