diff options
author | Aylur <[email protected]> | 2024-11-15 15:24:49 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-11-15 15:25:47 +0000 |
commit | 2dd071c5bbbec7c584cf07349ffbca56189e0a78 (patch) | |
tree | 125f7946e96977617e9a149cc82d182daefb2b7d /lang/gjs/src/gobject.ts | |
parent | 5a09ab8c27579b417ee6259b6bcf8e3e3aa78449 (diff) |
fix(gjs): gobject decorators
subclassing further now works correctly
signals without args are fixed
Diffstat (limited to 'lang/gjs/src/gobject.ts')
-rw-r--r-- | lang/gjs/src/gobject.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/gjs/src/gobject.ts b/lang/gjs/src/gobject.ts index 59dd62a..b744cfb 100644 --- a/lang/gjs/src/gobject.ts +++ b/lang/gjs/src/gobject.ts @@ -51,6 +51,8 @@ export function register(options: MetaInfo = {}) { Properties: { ...cls[meta]?.Properties }, ...options, }, cls) + + delete cls[meta] } } @@ -124,7 +126,9 @@ export function signal( } } else { - target.constructor[meta].Signals[name] = declaration + target.constructor[meta].Signals[name] = declaration || { + param_types: [], + } } if (!desc) { |