File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,7 @@ export class Messenger<
188
188
* The parent messenger. All actions/events under this namespace are automatically delegated to
189
189
* the parent messenger.
190
190
*/
191
- readonly #parent?: Messenger <
192
- string ,
193
- Action | ActionConstraint ,
194
- Event | EventConstraint
195
- > ;
191
+ readonly #parent?: DelegatedMessenger < Action , Event > ;
196
192
197
193
readonly #actions = new Map < Action [ 'type' ] , Action [ 'handler' ] > ( ) ;
198
194
@@ -247,11 +243,7 @@ export class Messenger<
247
243
parent,
248
244
} : {
249
245
namespace : Namespace ;
250
- parent ?: Messenger <
251
- string ,
252
- Action | ActionConstraint ,
253
- Event | EventConstraint
254
- > ;
246
+ parent ?: DelegatedMessenger < Action , Event > ;
255
247
} ) {
256
248
this . #namespace = namespace ;
257
249
this . #parent = parent ;
You can’t perform that action at this time.
0 commit comments