mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 23:45:13 +00:00
refactor: fix types
This commit is contained in:
parent
71dd7f89e9
commit
5b6695114f
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
* The getter will return a .bind version of the function
|
* The getter will return a .bind version of the function
|
||||||
* and memoize the result against a symbol on the instance
|
* and memoize the result against a symbol on the instance
|
||||||
*/
|
*/
|
||||||
export function bindThis(target, key, descriptor) {
|
export function bindThis(target: any, key: string, descriptor: any) {
|
||||||
let fn = descriptor.value;
|
let fn = descriptor.value;
|
||||||
|
|
||||||
if (typeof fn !== 'function') {
|
if (typeof fn !== 'function') {
|
||||||
|
@ -34,7 +34,7 @@ export function bindThis(target, key, descriptor) {
|
||||||
});
|
});
|
||||||
return boundFn;
|
return boundFn;
|
||||||
},
|
},
|
||||||
set(value) {
|
set(value: any) {
|
||||||
fn = value;
|
fn = value;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue