summaryrefslogtreecommitdiff
path: root/gjs/src
diff options
context:
space:
mode:
Diffstat (limited to 'gjs/src')
-rw-r--r--gjs/src/variable.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/gjs/src/variable.ts b/gjs/src/variable.ts
index 5ebaf5a..b5f186b 100644
--- a/gjs/src/variable.ts
+++ b/gjs/src/variable.ts
@@ -172,11 +172,11 @@ class VariableWrapper<T> extends Function {
observe(
objs: Connectable | Array<[obj: Connectable, signal: string]>,
- sigOrFn: string | ((...args: any[]) => T),
- callback?: (...args: any[]) => T,
+ sigOrFn: string | ((obj: Connectable, ...args: any[]) => T),
+ callback?: (obj: Connectable, ...args: any[]) => T,
) {
const f = typeof sigOrFn === "function" ? sigOrFn : callback ?? (() => this.get())
- const set = (_: Connectable, ...args: any[]) => this.set(f(...args))
+ const set = (obj: Connectable, ...args: any[]) => this.set(f(obj, ...args))
if (Array.isArray(objs)) {
for (const obj of objs) {