@genesislcap/foundation-events 14.67.2 → 14.67.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +5 -1
  2. package/dist/dts/eventEmitter/eventEmitterDI.d.ts +43 -4
  3. package/dist/dts/eventEmitter/eventEmitterDI.d.ts.map +1 -1
  4. package/dist/dts/eventEmitter/eventEmitterMixin.d.ts +57 -317
  5. package/dist/dts/eventEmitter/eventEmitterMixin.d.ts.map +1 -1
  6. package/dist/dts/index.d.ts +1 -0
  7. package/dist/dts/index.d.ts.map +1 -1
  8. package/dist/dts/tsdoc-metadata.json +11 -0
  9. package/dist/dts/types.d.ts +78 -10
  10. package/dist/dts/types.d.ts.map +1 -1
  11. package/dist/dts/utils/index.d.ts +2 -0
  12. package/dist/dts/utils/index.d.ts.map +1 -0
  13. package/dist/dts/utils/logger.d.ts +5 -0
  14. package/dist/dts/utils/logger.d.ts.map +1 -0
  15. package/dist/esm/eventEmitter/eventEmitterDI.js +14 -0
  16. package/dist/esm/eventEmitter/eventEmitterMixin.js +57 -4
  17. package/dist/esm/index.js +1 -0
  18. package/dist/esm/types.js +48 -0
  19. package/dist/esm/utils/index.js +1 -0
  20. package/dist/esm/utils/logger.js +5 -0
  21. package/dist/foundation-events.api.json +1374 -0
  22. package/dist/foundation-events.d.ts +246 -0
  23. package/docs/.gitattributes +2 -0
  24. package/docs/api/foundation-events.constructabletypedeventemitter.md +16 -0
  25. package/docs/api/foundation-events.createinputemitter.md +27 -0
  26. package/docs/api/foundation-events.createselectemitter.md +27 -0
  27. package/docs/api/foundation-events.customevent.md +12 -0
  28. package/docs/api/foundation-events.customeventmap.md +16 -0
  29. package/docs/api/foundation-events.defaulteventemitterdi.emit.md +22 -0
  30. package/docs/api/foundation-events.defaulteventemitterdi.md +21 -0
  31. package/docs/api/foundation-events.emitargs.md +14 -0
  32. package/docs/api/foundation-events.emitoptions.md +12 -0
  33. package/docs/api/foundation-events.emitorigin.md +12 -0
  34. package/docs/api/foundation-events.emitreturn.md +12 -0
  35. package/docs/api/foundation-events.eventdetailmap.md +12 -0
  36. package/docs/api/foundation-events.eventemitter.md +59 -0
  37. package/docs/api/foundation-events.eventemitterdi.emit.md +22 -0
  38. package/docs/api/foundation-events.eventemitterdi.md +48 -0
  39. package/docs/api/foundation-events.eventemittertarget.md +16 -0
  40. package/docs/api/foundation-events.getbaseemitargs.md +12 -0
  41. package/docs/api/foundation-events.keysmatching.md +14 -0
  42. package/docs/api/foundation-events.logger.md +12 -0
  43. package/docs/api/foundation-events.md +47 -0
  44. package/docs/api/foundation-events.registeremitter.md +13 -0
  45. package/docs/api/foundation-events.targetfirstselectedvalue.md +12 -0
  46. package/docs/api/foundation-events.targetvalue.md +12 -0
  47. package/docs/api/foundation-events.typedemitter._emit.md +22 -0
  48. package/docs/api/foundation-events.typedemitter.md +19 -0
  49. package/docs/api/index.md +12 -0
  50. package/docs/api-report.md +106 -0
  51. package/package.json +24 -4
@@ -0,0 +1,1374 @@
1
+ {
2
+ "metadata": {
3
+ "toolPackage": "@microsoft/api-extractor",
4
+ "toolVersion": "7.34.9",
5
+ "schemaVersion": 1011,
6
+ "oldestForwardsCompatibleVersion": 1001,
7
+ "tsdocConfig": {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
+ "noStandardTags": true,
10
+ "tagDefinitions": [
11
+ {
12
+ "tagName": "@alpha",
13
+ "syntaxKind": "modifier"
14
+ },
15
+ {
16
+ "tagName": "@beta",
17
+ "syntaxKind": "modifier"
18
+ },
19
+ {
20
+ "tagName": "@defaultValue",
21
+ "syntaxKind": "block"
22
+ },
23
+ {
24
+ "tagName": "@decorator",
25
+ "syntaxKind": "block",
26
+ "allowMultiple": true
27
+ },
28
+ {
29
+ "tagName": "@deprecated",
30
+ "syntaxKind": "block"
31
+ },
32
+ {
33
+ "tagName": "@eventProperty",
34
+ "syntaxKind": "modifier"
35
+ },
36
+ {
37
+ "tagName": "@example",
38
+ "syntaxKind": "block",
39
+ "allowMultiple": true
40
+ },
41
+ {
42
+ "tagName": "@experimental",
43
+ "syntaxKind": "modifier"
44
+ },
45
+ {
46
+ "tagName": "@inheritDoc",
47
+ "syntaxKind": "inline"
48
+ },
49
+ {
50
+ "tagName": "@internal",
51
+ "syntaxKind": "modifier"
52
+ },
53
+ {
54
+ "tagName": "@label",
55
+ "syntaxKind": "inline"
56
+ },
57
+ {
58
+ "tagName": "@link",
59
+ "syntaxKind": "inline",
60
+ "allowMultiple": true
61
+ },
62
+ {
63
+ "tagName": "@override",
64
+ "syntaxKind": "modifier"
65
+ },
66
+ {
67
+ "tagName": "@packageDocumentation",
68
+ "syntaxKind": "modifier"
69
+ },
70
+ {
71
+ "tagName": "@param",
72
+ "syntaxKind": "block",
73
+ "allowMultiple": true
74
+ },
75
+ {
76
+ "tagName": "@privateRemarks",
77
+ "syntaxKind": "block"
78
+ },
79
+ {
80
+ "tagName": "@public",
81
+ "syntaxKind": "modifier"
82
+ },
83
+ {
84
+ "tagName": "@readonly",
85
+ "syntaxKind": "modifier"
86
+ },
87
+ {
88
+ "tagName": "@remarks",
89
+ "syntaxKind": "block"
90
+ },
91
+ {
92
+ "tagName": "@returns",
93
+ "syntaxKind": "block"
94
+ },
95
+ {
96
+ "tagName": "@sealed",
97
+ "syntaxKind": "modifier"
98
+ },
99
+ {
100
+ "tagName": "@see",
101
+ "syntaxKind": "block"
102
+ },
103
+ {
104
+ "tagName": "@throws",
105
+ "syntaxKind": "block",
106
+ "allowMultiple": true
107
+ },
108
+ {
109
+ "tagName": "@typeParam",
110
+ "syntaxKind": "block",
111
+ "allowMultiple": true
112
+ },
113
+ {
114
+ "tagName": "@virtual",
115
+ "syntaxKind": "modifier"
116
+ },
117
+ {
118
+ "tagName": "@betaDocumentation",
119
+ "syntaxKind": "modifier"
120
+ },
121
+ {
122
+ "tagName": "@internalRemarks",
123
+ "syntaxKind": "block"
124
+ },
125
+ {
126
+ "tagName": "@preapproved",
127
+ "syntaxKind": "modifier"
128
+ }
129
+ ],
130
+ "supportForTags": {
131
+ "@alpha": true,
132
+ "@beta": true,
133
+ "@defaultValue": true,
134
+ "@decorator": true,
135
+ "@deprecated": true,
136
+ "@eventProperty": true,
137
+ "@example": true,
138
+ "@experimental": true,
139
+ "@inheritDoc": true,
140
+ "@internal": true,
141
+ "@label": true,
142
+ "@link": true,
143
+ "@override": true,
144
+ "@packageDocumentation": true,
145
+ "@param": true,
146
+ "@privateRemarks": true,
147
+ "@public": true,
148
+ "@readonly": true,
149
+ "@remarks": true,
150
+ "@returns": true,
151
+ "@sealed": true,
152
+ "@see": true,
153
+ "@throws": true,
154
+ "@typeParam": true,
155
+ "@virtual": true,
156
+ "@betaDocumentation": true,
157
+ "@internalRemarks": true,
158
+ "@preapproved": true
159
+ },
160
+ "reportUnsupportedHtmlElements": false
161
+ }
162
+ },
163
+ "kind": "Package",
164
+ "canonicalReference": "@genesislcap/foundation-events!",
165
+ "docComment": "",
166
+ "name": "@genesislcap/foundation-events",
167
+ "preserveMemberOrder": false,
168
+ "members": [
169
+ {
170
+ "kind": "EntryPoint",
171
+ "canonicalReference": "@genesislcap/foundation-events!",
172
+ "name": "",
173
+ "preserveMemberOrder": false,
174
+ "members": [
175
+ {
176
+ "kind": "TypeAlias",
177
+ "canonicalReference": "@genesislcap/foundation-events!ConstructableTypedEventEmitter:type",
178
+ "docComment": "/**\n * @deprecated\n *\n * - Use {@link EventEmitterTarget} type instead.\n *\n * @public\n */\n",
179
+ "excerptTokens": [
180
+ {
181
+ "kind": "Content",
182
+ "text": "export type ConstructableTypedEventEmitter = "
183
+ },
184
+ {
185
+ "kind": "Reference",
186
+ "text": "Constructable",
187
+ "canonicalReference": "@microsoft/fast-element!Constructable:type"
188
+ },
189
+ {
190
+ "kind": "Content",
191
+ "text": "<"
192
+ },
193
+ {
194
+ "kind": "Reference",
195
+ "text": "FASTElement",
196
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
197
+ },
198
+ {
199
+ "kind": "Content",
200
+ "text": " & "
201
+ },
202
+ {
203
+ "kind": "Reference",
204
+ "text": "HTMLElement",
205
+ "canonicalReference": "!HTMLElement:interface"
206
+ },
207
+ {
208
+ "kind": "Content",
209
+ "text": ">"
210
+ },
211
+ {
212
+ "kind": "Content",
213
+ "text": ";"
214
+ }
215
+ ],
216
+ "fileUrlPath": "src/types.ts",
217
+ "releaseTag": "Public",
218
+ "name": "ConstructableTypedEventEmitter",
219
+ "typeTokenRange": {
220
+ "startIndex": 1,
221
+ "endIndex": 7
222
+ }
223
+ },
224
+ {
225
+ "kind": "Variable",
226
+ "canonicalReference": "@genesislcap/foundation-events!createInputEmitter:var",
227
+ "docComment": "/**\n * `<input>` template emit helper.\n *\n * @remarks\n *\n * In some.template.ts file you create the helper upfront by passing in the full event map.\n *\n * @example\n * ```ts\n * const inputEmit = createInputEmitter<EventMap>();\n * ...\n * <zero-text-field @change=\"${inputEmit('some-input-changed')}\">\n * ```\n *\n * @public\n */\n",
228
+ "excerptTokens": [
229
+ {
230
+ "kind": "Content",
231
+ "text": "createInputEmitter: "
232
+ },
233
+ {
234
+ "kind": "Content",
235
+ "text": "<TEventDetailMap extends "
236
+ },
237
+ {
238
+ "kind": "Reference",
239
+ "text": "EventDetailMap",
240
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
241
+ },
242
+ {
243
+ "kind": "Content",
244
+ "text": ">() => <K extends "
245
+ },
246
+ {
247
+ "kind": "Reference",
248
+ "text": "KeysMatching",
249
+ "canonicalReference": "@genesislcap/foundation-events!KeysMatching:type"
250
+ },
251
+ {
252
+ "kind": "Content",
253
+ "text": "<TEventDetailMap, string>>(type: K, options?: "
254
+ },
255
+ {
256
+ "kind": "Reference",
257
+ "text": "EmitOptions",
258
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
259
+ },
260
+ {
261
+ "kind": "Content",
262
+ "text": ") => "
263
+ },
264
+ {
265
+ "kind": "Reference",
266
+ "text": "Binding",
267
+ "canonicalReference": "@microsoft/fast-element!Binding:type"
268
+ }
269
+ ],
270
+ "fileUrlPath": "src/types.ts",
271
+ "isReadonly": true,
272
+ "releaseTag": "Public",
273
+ "name": "createInputEmitter",
274
+ "variableTypeTokenRange": {
275
+ "startIndex": 1,
276
+ "endIndex": 9
277
+ }
278
+ },
279
+ {
280
+ "kind": "Variable",
281
+ "canonicalReference": "@genesislcap/foundation-events!createSelectEmitter:var",
282
+ "docComment": "/**\n * `<select>` template emit helper.\n *\n * @remarks\n *\n * In some.template.ts file you create the helper upfront by passing in the full event map.\n *\n * @example\n * ```ts\n * const selectEmit = createSelectEmitter<EventMap>();\n * ...\n * <zero-select @change=\"${selectEmit('some-select-changed')}\">\n * ```\n *\n * @public\n */\n",
283
+ "excerptTokens": [
284
+ {
285
+ "kind": "Content",
286
+ "text": "createSelectEmitter: "
287
+ },
288
+ {
289
+ "kind": "Content",
290
+ "text": "<TEventDetailMap extends "
291
+ },
292
+ {
293
+ "kind": "Reference",
294
+ "text": "EventDetailMap",
295
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
296
+ },
297
+ {
298
+ "kind": "Content",
299
+ "text": ">() => <K extends "
300
+ },
301
+ {
302
+ "kind": "Reference",
303
+ "text": "KeysMatching",
304
+ "canonicalReference": "@genesislcap/foundation-events!KeysMatching:type"
305
+ },
306
+ {
307
+ "kind": "Content",
308
+ "text": "<TEventDetailMap, string>>(type: K, options?: "
309
+ },
310
+ {
311
+ "kind": "Reference",
312
+ "text": "EmitOptions",
313
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
314
+ },
315
+ {
316
+ "kind": "Content",
317
+ "text": ") => "
318
+ },
319
+ {
320
+ "kind": "Reference",
321
+ "text": "Binding",
322
+ "canonicalReference": "@microsoft/fast-element!Binding:type"
323
+ }
324
+ ],
325
+ "fileUrlPath": "src/types.ts",
326
+ "isReadonly": true,
327
+ "releaseTag": "Public",
328
+ "name": "createSelectEmitter",
329
+ "variableTypeTokenRange": {
330
+ "startIndex": 1,
331
+ "endIndex": 9
332
+ }
333
+ },
334
+ {
335
+ "kind": "Variable",
336
+ "canonicalReference": "@genesislcap/foundation-events!customEvent:var",
337
+ "docComment": "/**\n * @public\n */\n",
338
+ "excerptTokens": [
339
+ {
340
+ "kind": "Content",
341
+ "text": "customEvent: "
342
+ },
343
+ {
344
+ "kind": "Content",
345
+ "text": "<TEventDetail = void>(ctx: "
346
+ },
347
+ {
348
+ "kind": "Reference",
349
+ "text": "ExecutionContext",
350
+ "canonicalReference": "@microsoft/fast-element!ExecutionContext:class"
351
+ },
352
+ {
353
+ "kind": "Content",
354
+ "text": ") => "
355
+ },
356
+ {
357
+ "kind": "Reference",
358
+ "text": "CustomEvent",
359
+ "canonicalReference": "!CustomEvent:interface"
360
+ },
361
+ {
362
+ "kind": "Content",
363
+ "text": "<TEventDetail>"
364
+ }
365
+ ],
366
+ "fileUrlPath": "src/types.ts",
367
+ "isReadonly": true,
368
+ "releaseTag": "Public",
369
+ "name": "customEvent",
370
+ "variableTypeTokenRange": {
371
+ "startIndex": 1,
372
+ "endIndex": 6
373
+ }
374
+ },
375
+ {
376
+ "kind": "TypeAlias",
377
+ "canonicalReference": "@genesislcap/foundation-events!CustomEventMap:type",
378
+ "docComment": "/**\n * @public\n */\n",
379
+ "excerptTokens": [
380
+ {
381
+ "kind": "Content",
382
+ "text": "export type CustomEventMap<TEventDetailMap extends "
383
+ },
384
+ {
385
+ "kind": "Reference",
386
+ "text": "EventDetailMap",
387
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
388
+ },
389
+ {
390
+ "kind": "Content",
391
+ "text": "> = "
392
+ },
393
+ {
394
+ "kind": "Content",
395
+ "text": "{\n [K in keyof TEventDetailMap]: "
396
+ },
397
+ {
398
+ "kind": "Reference",
399
+ "text": "CustomEvent",
400
+ "canonicalReference": "!CustomEvent:interface"
401
+ },
402
+ {
403
+ "kind": "Content",
404
+ "text": "<TEventDetailMap[K]>;\n}"
405
+ },
406
+ {
407
+ "kind": "Content",
408
+ "text": ";"
409
+ }
410
+ ],
411
+ "fileUrlPath": "src/types.ts",
412
+ "releaseTag": "Public",
413
+ "name": "CustomEventMap",
414
+ "typeParameters": [
415
+ {
416
+ "typeParameterName": "TEventDetailMap",
417
+ "constraintTokenRange": {
418
+ "startIndex": 1,
419
+ "endIndex": 2
420
+ },
421
+ "defaultTypeTokenRange": {
422
+ "startIndex": 0,
423
+ "endIndex": 0
424
+ }
425
+ }
426
+ ],
427
+ "typeTokenRange": {
428
+ "startIndex": 3,
429
+ "endIndex": 6
430
+ }
431
+ },
432
+ {
433
+ "kind": "Class",
434
+ "canonicalReference": "@genesislcap/foundation-events!DefaultEventEmitterDI:class",
435
+ "docComment": "/**\n * Default EventEmitterDI.\n *\n * @typeParam TEventDetailMap - The {@link EventDetailMap}.\n *\n * @public\n */\n",
436
+ "excerptTokens": [
437
+ {
438
+ "kind": "Content",
439
+ "text": "export declare class DefaultEventEmitterDI<TEventDetailMap extends "
440
+ },
441
+ {
442
+ "kind": "Reference",
443
+ "text": "EventDetailMap",
444
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
445
+ },
446
+ {
447
+ "kind": "Content",
448
+ "text": "> implements "
449
+ },
450
+ {
451
+ "kind": "Reference",
452
+ "text": "EventEmitterDI",
453
+ "canonicalReference": "@genesislcap/foundation-events!EventEmitterDI:interface"
454
+ },
455
+ {
456
+ "kind": "Content",
457
+ "text": "<TEventDetailMap>"
458
+ },
459
+ {
460
+ "kind": "Content",
461
+ "text": " "
462
+ }
463
+ ],
464
+ "fileUrlPath": "src/eventEmitter/eventEmitterDI.ts",
465
+ "releaseTag": "Public",
466
+ "typeParameters": [
467
+ {
468
+ "typeParameterName": "TEventDetailMap",
469
+ "constraintTokenRange": {
470
+ "startIndex": 1,
471
+ "endIndex": 2
472
+ },
473
+ "defaultTypeTokenRange": {
474
+ "startIndex": 0,
475
+ "endIndex": 0
476
+ }
477
+ }
478
+ ],
479
+ "isAbstract": false,
480
+ "name": "DefaultEventEmitterDI",
481
+ "preserveMemberOrder": false,
482
+ "members": [
483
+ {
484
+ "kind": "Method",
485
+ "canonicalReference": "@genesislcap/foundation-events!DefaultEventEmitterDI#emit:member(1)",
486
+ "docComment": "",
487
+ "excerptTokens": [
488
+ {
489
+ "kind": "Content",
490
+ "text": "emit<K extends "
491
+ },
492
+ {
493
+ "kind": "Content",
494
+ "text": "keyof TEventDetailMap"
495
+ },
496
+ {
497
+ "kind": "Content",
498
+ "text": ">(...args: "
499
+ },
500
+ {
501
+ "kind": "Content",
502
+ "text": "TEventDetailMap[K] extends void ? [origin: "
503
+ },
504
+ {
505
+ "kind": "Reference",
506
+ "text": "EmitOrigin",
507
+ "canonicalReference": "@genesislcap/foundation-events!EmitOrigin:type"
508
+ },
509
+ {
510
+ "kind": "Content",
511
+ "text": ", type: K, options?: "
512
+ },
513
+ {
514
+ "kind": "Reference",
515
+ "text": "EmitOptions",
516
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
517
+ },
518
+ {
519
+ "kind": "Content",
520
+ "text": "] : [origin: "
521
+ },
522
+ {
523
+ "kind": "Reference",
524
+ "text": "EmitOrigin",
525
+ "canonicalReference": "@genesislcap/foundation-events!EmitOrigin:type"
526
+ },
527
+ {
528
+ "kind": "Content",
529
+ "text": ", type: K, detail: TEventDetailMap[K], options?: "
530
+ },
531
+ {
532
+ "kind": "Reference",
533
+ "text": "EmitOptions",
534
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
535
+ },
536
+ {
537
+ "kind": "Content",
538
+ "text": "]"
539
+ },
540
+ {
541
+ "kind": "Content",
542
+ "text": "): "
543
+ },
544
+ {
545
+ "kind": "Reference",
546
+ "text": "EmitReturn",
547
+ "canonicalReference": "@genesislcap/foundation-events!EmitReturn:type"
548
+ },
549
+ {
550
+ "kind": "Content",
551
+ "text": ";"
552
+ }
553
+ ],
554
+ "typeParameters": [
555
+ {
556
+ "typeParameterName": "K",
557
+ "constraintTokenRange": {
558
+ "startIndex": 1,
559
+ "endIndex": 2
560
+ },
561
+ "defaultTypeTokenRange": {
562
+ "startIndex": 0,
563
+ "endIndex": 0
564
+ }
565
+ }
566
+ ],
567
+ "isStatic": false,
568
+ "returnTypeTokenRange": {
569
+ "startIndex": 13,
570
+ "endIndex": 14
571
+ },
572
+ "releaseTag": "Public",
573
+ "isProtected": false,
574
+ "overloadIndex": 1,
575
+ "parameters": [
576
+ {
577
+ "parameterName": "args",
578
+ "parameterTypeTokenRange": {
579
+ "startIndex": 3,
580
+ "endIndex": 12
581
+ },
582
+ "isOptional": false
583
+ }
584
+ ],
585
+ "isOptional": false,
586
+ "isAbstract": false,
587
+ "name": "emit"
588
+ }
589
+ ],
590
+ "implementsTokenRanges": [
591
+ {
592
+ "startIndex": 3,
593
+ "endIndex": 5
594
+ }
595
+ ]
596
+ },
597
+ {
598
+ "kind": "TypeAlias",
599
+ "canonicalReference": "@genesislcap/foundation-events!EmitArgs:type",
600
+ "docComment": "/**\n * @public\n */\n",
601
+ "excerptTokens": [
602
+ {
603
+ "kind": "Content",
604
+ "text": "export type EmitArgs = "
605
+ },
606
+ {
607
+ "kind": "Content",
608
+ "text": "[string, {} | undefined, "
609
+ },
610
+ {
611
+ "kind": "Reference",
612
+ "text": "EmitOptions",
613
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
614
+ },
615
+ {
616
+ "kind": "Content",
617
+ "text": " | undefined]"
618
+ },
619
+ {
620
+ "kind": "Content",
621
+ "text": ";"
622
+ }
623
+ ],
624
+ "fileUrlPath": "src/types.ts",
625
+ "releaseTag": "Public",
626
+ "name": "EmitArgs",
627
+ "typeTokenRange": {
628
+ "startIndex": 1,
629
+ "endIndex": 4
630
+ }
631
+ },
632
+ {
633
+ "kind": "TypeAlias",
634
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type",
635
+ "docComment": "/**\n * @public\n */\n",
636
+ "excerptTokens": [
637
+ {
638
+ "kind": "Content",
639
+ "text": "export type EmitOptions = "
640
+ },
641
+ {
642
+ "kind": "Reference",
643
+ "text": "Omit",
644
+ "canonicalReference": "!Omit:type"
645
+ },
646
+ {
647
+ "kind": "Content",
648
+ "text": "<"
649
+ },
650
+ {
651
+ "kind": "Reference",
652
+ "text": "CustomEventInit",
653
+ "canonicalReference": "!CustomEventInit:interface"
654
+ },
655
+ {
656
+ "kind": "Content",
657
+ "text": ", 'detail'>"
658
+ },
659
+ {
660
+ "kind": "Content",
661
+ "text": ";"
662
+ }
663
+ ],
664
+ "fileUrlPath": "src/types.ts",
665
+ "releaseTag": "Public",
666
+ "name": "EmitOptions",
667
+ "typeTokenRange": {
668
+ "startIndex": 1,
669
+ "endIndex": 5
670
+ }
671
+ },
672
+ {
673
+ "kind": "TypeAlias",
674
+ "canonicalReference": "@genesislcap/foundation-events!EmitOrigin:type",
675
+ "docComment": "/**\n * @public\n */\n",
676
+ "excerptTokens": [
677
+ {
678
+ "kind": "Content",
679
+ "text": "export type EmitOrigin = "
680
+ },
681
+ {
682
+ "kind": "Reference",
683
+ "text": "FASTElement",
684
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
685
+ },
686
+ {
687
+ "kind": "Content",
688
+ "text": ";"
689
+ }
690
+ ],
691
+ "fileUrlPath": "src/types.ts",
692
+ "releaseTag": "Public",
693
+ "name": "EmitOrigin",
694
+ "typeTokenRange": {
695
+ "startIndex": 1,
696
+ "endIndex": 2
697
+ }
698
+ },
699
+ {
700
+ "kind": "TypeAlias",
701
+ "canonicalReference": "@genesislcap/foundation-events!EmitReturn:type",
702
+ "docComment": "/**\n * @public\n */\n",
703
+ "excerptTokens": [
704
+ {
705
+ "kind": "Content",
706
+ "text": "export type EmitReturn = "
707
+ },
708
+ {
709
+ "kind": "Content",
710
+ "text": "boolean | void"
711
+ },
712
+ {
713
+ "kind": "Content",
714
+ "text": ";"
715
+ }
716
+ ],
717
+ "fileUrlPath": "src/types.ts",
718
+ "releaseTag": "Public",
719
+ "name": "EmitReturn",
720
+ "typeTokenRange": {
721
+ "startIndex": 1,
722
+ "endIndex": 2
723
+ }
724
+ },
725
+ {
726
+ "kind": "TypeAlias",
727
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type",
728
+ "docComment": "/**\n * @public\n */\n",
729
+ "excerptTokens": [
730
+ {
731
+ "kind": "Content",
732
+ "text": "export type EventDetailMap = "
733
+ },
734
+ {
735
+ "kind": "Reference",
736
+ "text": "Record",
737
+ "canonicalReference": "!Record:type"
738
+ },
739
+ {
740
+ "kind": "Content",
741
+ "text": "<string, unknown>"
742
+ },
743
+ {
744
+ "kind": "Content",
745
+ "text": ";"
746
+ }
747
+ ],
748
+ "fileUrlPath": "src/types.ts",
749
+ "releaseTag": "Public",
750
+ "name": "EventDetailMap",
751
+ "typeTokenRange": {
752
+ "startIndex": 1,
753
+ "endIndex": 3
754
+ }
755
+ },
756
+ {
757
+ "kind": "Variable",
758
+ "canonicalReference": "@genesislcap/foundation-events!EventEmitter:var",
759
+ "docComment": "/**\n * EventEmitter mixin.\n *\n * @remarks\n *\n * Strongly types the components `$emit` method, allowing only the mapped events to be emitted.\n *\n * @param Target - The class to apply the mixin to which ultimately extends {@link @microsoft/fast-element#FASTElement | FASTElement}.\n *\n * @typeParam TEventDetailMap - The {@link EventDetailMap}.\n *\n * @typeParam TTarget - The target class.\n *\n * @example\n *\n * Apply mixin to the base {@link @microsoft/fast-element#FASTElement | FASTElement}\n *\n * # Import\n * ```ts\n * import { EventEmitter, SomeSystemLevelEventDetailMap } from '@genesislcap/foundation-events';\n * import { StoreEventDetailMap, TradeEntryEventDetailMap } from '../store'; // < custom app level event maps\n * ```\n *\n * # Create event map\n * ```ts\n * type EventMap = SomeSystemLevelEventDetailMap & StoreEventDetailMap & TradeEntryEventDetailMap;\n * ```\n *\n * # Apply Mixin\n * ```ts\n * export class MyComponent extends EventEmitter<EventMap>(FASTElement) {\n * onSomeComponentEvent() {\n * this.$emit('some-allowed-event', { foo: 'expected data structure' });\n * }\n * }\n * ```\n *\n * @example\n *\n * Apply mixin to a class in the inheritance chain requires a second generic type param.\n *\n * # Apply Mixin to MyComponent that extends MyBaseComponent (which might be abstract). Mixin can be applied at different levels. # Please note there's a current limitation on retaining protected member access with this approach, so apply to base where possible. # Also, super classes cannot emit typed events via inheritance. Each level must have an explicit map. Devs can use a Union and Pick to create these.\n * ```ts\n * export class MyComponent extends EventEmitter<EventMap, MyBaseComponent>(MyBaseComponent) {}\n * ```\n *\n * @public\n */\n",
760
+ "excerptTokens": [
761
+ {
762
+ "kind": "Content",
763
+ "text": "EventEmitter: "
764
+ },
765
+ {
766
+ "kind": "Content",
767
+ "text": "<TEventDetailMap extends "
768
+ },
769
+ {
770
+ "kind": "Reference",
771
+ "text": "EventDetailMap",
772
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
773
+ },
774
+ {
775
+ "kind": "Content",
776
+ "text": ", TTarget extends "
777
+ },
778
+ {
779
+ "kind": "Reference",
780
+ "text": "FASTElement",
781
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
782
+ },
783
+ {
784
+ "kind": "Content",
785
+ "text": " = "
786
+ },
787
+ {
788
+ "kind": "Reference",
789
+ "text": "FASTElement",
790
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
791
+ },
792
+ {
793
+ "kind": "Content",
794
+ "text": ">(Target: "
795
+ },
796
+ {
797
+ "kind": "Reference",
798
+ "text": "EventEmitterTarget",
799
+ "canonicalReference": "@genesislcap/foundation-events!EventEmitterTarget:type"
800
+ },
801
+ {
802
+ "kind": "Content",
803
+ "text": "<TTarget>) => abstract new (...args: any[]) => {\n $emit<K extends keyof TEventDetailMap & string>(...args: TEventDetailMap[K] extends void ? [type: K, options?: "
804
+ },
805
+ {
806
+ "kind": "Reference",
807
+ "text": "EmitOptions",
808
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
809
+ },
810
+ {
811
+ "kind": "Content",
812
+ "text": "] : [type: K, detail: TEventDetailMap[K], options?: "
813
+ },
814
+ {
815
+ "kind": "Reference",
816
+ "text": "EmitOptions",
817
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
818
+ },
819
+ {
820
+ "kind": "Content",
821
+ "text": "]): "
822
+ },
823
+ {
824
+ "kind": "Reference",
825
+ "text": "EmitReturn",
826
+ "canonicalReference": "@genesislcap/foundation-events!EmitReturn:type"
827
+ },
828
+ {
829
+ "kind": "Content",
830
+ "text": ";\n readonly $fastController: import(\"@microsoft/fast-element\")."
831
+ },
832
+ {
833
+ "kind": "Reference",
834
+ "text": "Controller",
835
+ "canonicalReference": "@microsoft/fast-element!Controller:class"
836
+ },
837
+ {
838
+ "kind": "Content",
839
+ "text": ";\n connectedCallback(): void;\n disconnectedCallback(): void;\n attributeChangedCallback(name: string, oldValue: string, newValue: string): void;\n}"
840
+ }
841
+ ],
842
+ "fileUrlPath": "src/eventEmitter/eventEmitterMixin.ts",
843
+ "isReadonly": true,
844
+ "releaseTag": "Public",
845
+ "name": "EventEmitter",
846
+ "variableTypeTokenRange": {
847
+ "startIndex": 1,
848
+ "endIndex": 18
849
+ }
850
+ },
851
+ {
852
+ "kind": "Interface",
853
+ "canonicalReference": "@genesislcap/foundation-events!EventEmitterDI:interface",
854
+ "docComment": "/**\n * EventEmitterDI interface.\n *\n * @remarks\n *\n * A strongly typed event emitter with events typed to {@link EventDetailMap} pairings. This is closely related to the {@link EventEmitter} mixin in terms of functionality, however its purpose is different. This allows you to create pre-configured EventEmitters that can be injected anywhere. These can emit typed events from an origin html element, without that element needing to be an actual {@link @microsoft/fast-element#FASTElement | FASTElement}. If you are starting out, we recommend using the {@link EventEmitter} mixin where possible.\n *\n * @typeParam TEventDetailMap - The {@link EventDetailMap}.\n *\n * @example\n *\n * Create an emitter within the DI.\n * ```ts\n * import {registerEmitter} from '@genesislcap/foundation-events';\n * ...\n * export const MyEventEmitter = registerEmitter<MyEventDetailMap>();\n * ```\n *\n * @example\n *\n * Use that emitter.\n * ```ts\n * export class MyComponent extends FASTElement {\n * @observable someElement!: HTMLElement;\n * @MyEventEmitter emitter: MyEventEmitter;\n * connectedCallback() {\n * this.emitter.emit(this.someElement, 'some-event', {foo: 'bar'});\n * }\n * }\n * ```\n *\n * @public\n */\n",
855
+ "excerptTokens": [
856
+ {
857
+ "kind": "Content",
858
+ "text": "export interface EventEmitterDI<TEventDetailMap extends "
859
+ },
860
+ {
861
+ "kind": "Reference",
862
+ "text": "EventDetailMap",
863
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
864
+ },
865
+ {
866
+ "kind": "Content",
867
+ "text": "> "
868
+ }
869
+ ],
870
+ "fileUrlPath": "src/eventEmitter/eventEmitterDI.ts",
871
+ "releaseTag": "Public",
872
+ "typeParameters": [
873
+ {
874
+ "typeParameterName": "TEventDetailMap",
875
+ "constraintTokenRange": {
876
+ "startIndex": 1,
877
+ "endIndex": 2
878
+ },
879
+ "defaultTypeTokenRange": {
880
+ "startIndex": 0,
881
+ "endIndex": 0
882
+ }
883
+ }
884
+ ],
885
+ "name": "EventEmitterDI",
886
+ "preserveMemberOrder": false,
887
+ "members": [
888
+ {
889
+ "kind": "MethodSignature",
890
+ "canonicalReference": "@genesislcap/foundation-events!EventEmitterDI#emit:member(1)",
891
+ "docComment": "",
892
+ "excerptTokens": [
893
+ {
894
+ "kind": "Content",
895
+ "text": "emit<K extends "
896
+ },
897
+ {
898
+ "kind": "Content",
899
+ "text": "keyof TEventDetailMap"
900
+ },
901
+ {
902
+ "kind": "Content",
903
+ "text": ">(...args: "
904
+ },
905
+ {
906
+ "kind": "Content",
907
+ "text": "TEventDetailMap[K] extends void ? [origin: "
908
+ },
909
+ {
910
+ "kind": "Reference",
911
+ "text": "EmitOrigin",
912
+ "canonicalReference": "@genesislcap/foundation-events!EmitOrigin:type"
913
+ },
914
+ {
915
+ "kind": "Content",
916
+ "text": ", type: K, options?: "
917
+ },
918
+ {
919
+ "kind": "Reference",
920
+ "text": "EmitOptions",
921
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
922
+ },
923
+ {
924
+ "kind": "Content",
925
+ "text": "] : [origin: "
926
+ },
927
+ {
928
+ "kind": "Reference",
929
+ "text": "EmitOrigin",
930
+ "canonicalReference": "@genesislcap/foundation-events!EmitOrigin:type"
931
+ },
932
+ {
933
+ "kind": "Content",
934
+ "text": ", type: K, detail: TEventDetailMap[K], options?: "
935
+ },
936
+ {
937
+ "kind": "Reference",
938
+ "text": "EmitOptions",
939
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
940
+ },
941
+ {
942
+ "kind": "Content",
943
+ "text": "]"
944
+ },
945
+ {
946
+ "kind": "Content",
947
+ "text": "): "
948
+ },
949
+ {
950
+ "kind": "Reference",
951
+ "text": "EmitReturn",
952
+ "canonicalReference": "@genesislcap/foundation-events!EmitReturn:type"
953
+ },
954
+ {
955
+ "kind": "Content",
956
+ "text": ";"
957
+ }
958
+ ],
959
+ "isOptional": false,
960
+ "returnTypeTokenRange": {
961
+ "startIndex": 13,
962
+ "endIndex": 14
963
+ },
964
+ "releaseTag": "Public",
965
+ "overloadIndex": 1,
966
+ "parameters": [
967
+ {
968
+ "parameterName": "args",
969
+ "parameterTypeTokenRange": {
970
+ "startIndex": 3,
971
+ "endIndex": 12
972
+ },
973
+ "isOptional": false
974
+ }
975
+ ],
976
+ "typeParameters": [
977
+ {
978
+ "typeParameterName": "K",
979
+ "constraintTokenRange": {
980
+ "startIndex": 1,
981
+ "endIndex": 2
982
+ },
983
+ "defaultTypeTokenRange": {
984
+ "startIndex": 0,
985
+ "endIndex": 0
986
+ }
987
+ }
988
+ ],
989
+ "name": "emit"
990
+ }
991
+ ],
992
+ "extendsTokenRanges": []
993
+ },
994
+ {
995
+ "kind": "TypeAlias",
996
+ "canonicalReference": "@genesislcap/foundation-events!EventEmitterTarget:type",
997
+ "docComment": "/**\n * @remarks\n *\n * Using `abstract` here should cover mixing into both concrete and abstract classes.\n *\n * @public\n */\n",
998
+ "excerptTokens": [
999
+ {
1000
+ "kind": "Content",
1001
+ "text": "export type EventEmitterTarget<TBase extends "
1002
+ },
1003
+ {
1004
+ "kind": "Reference",
1005
+ "text": "FASTElement",
1006
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
1007
+ },
1008
+ {
1009
+ "kind": "Content",
1010
+ "text": "> = "
1011
+ },
1012
+ {
1013
+ "kind": "Content",
1014
+ "text": "abstract new (...args: any[]) => TBase"
1015
+ },
1016
+ {
1017
+ "kind": "Content",
1018
+ "text": ";"
1019
+ }
1020
+ ],
1021
+ "fileUrlPath": "src/types.ts",
1022
+ "releaseTag": "Public",
1023
+ "name": "EventEmitterTarget",
1024
+ "typeParameters": [
1025
+ {
1026
+ "typeParameterName": "TBase",
1027
+ "constraintTokenRange": {
1028
+ "startIndex": 1,
1029
+ "endIndex": 2
1030
+ },
1031
+ "defaultTypeTokenRange": {
1032
+ "startIndex": 0,
1033
+ "endIndex": 0
1034
+ }
1035
+ }
1036
+ ],
1037
+ "typeTokenRange": {
1038
+ "startIndex": 3,
1039
+ "endIndex": 4
1040
+ }
1041
+ },
1042
+ {
1043
+ "kind": "Variable",
1044
+ "canonicalReference": "@genesislcap/foundation-events!getBaseEmitArgs:var",
1045
+ "docComment": "/**\n * @public\n */\n",
1046
+ "excerptTokens": [
1047
+ {
1048
+ "kind": "Content",
1049
+ "text": "getBaseEmitArgs: "
1050
+ },
1051
+ {
1052
+ "kind": "Content",
1053
+ "text": "(...args: unknown[]) => "
1054
+ },
1055
+ {
1056
+ "kind": "Reference",
1057
+ "text": "EmitArgs",
1058
+ "canonicalReference": "@genesislcap/foundation-events!EmitArgs:type"
1059
+ }
1060
+ ],
1061
+ "fileUrlPath": "src/types.ts",
1062
+ "isReadonly": true,
1063
+ "releaseTag": "Public",
1064
+ "name": "getBaseEmitArgs",
1065
+ "variableTypeTokenRange": {
1066
+ "startIndex": 1,
1067
+ "endIndex": 3
1068
+ }
1069
+ },
1070
+ {
1071
+ "kind": "TypeAlias",
1072
+ "canonicalReference": "@genesislcap/foundation-events!KeysMatching:type",
1073
+ "docComment": "/**\n * @public\n */\n",
1074
+ "excerptTokens": [
1075
+ {
1076
+ "kind": "Content",
1077
+ "text": "export type KeysMatching<T, V> = "
1078
+ },
1079
+ {
1080
+ "kind": "Content",
1081
+ "text": "{\n [K in keyof T]-?: T[K] extends V ? K : never;\n}[keyof T]"
1082
+ },
1083
+ {
1084
+ "kind": "Content",
1085
+ "text": ";"
1086
+ }
1087
+ ],
1088
+ "fileUrlPath": "src/types.ts",
1089
+ "releaseTag": "Public",
1090
+ "name": "KeysMatching",
1091
+ "typeParameters": [
1092
+ {
1093
+ "typeParameterName": "T",
1094
+ "constraintTokenRange": {
1095
+ "startIndex": 0,
1096
+ "endIndex": 0
1097
+ },
1098
+ "defaultTypeTokenRange": {
1099
+ "startIndex": 0,
1100
+ "endIndex": 0
1101
+ }
1102
+ },
1103
+ {
1104
+ "typeParameterName": "V",
1105
+ "constraintTokenRange": {
1106
+ "startIndex": 0,
1107
+ "endIndex": 0
1108
+ },
1109
+ "defaultTypeTokenRange": {
1110
+ "startIndex": 0,
1111
+ "endIndex": 0
1112
+ }
1113
+ }
1114
+ ],
1115
+ "typeTokenRange": {
1116
+ "startIndex": 1,
1117
+ "endIndex": 2
1118
+ }
1119
+ },
1120
+ {
1121
+ "kind": "Variable",
1122
+ "canonicalReference": "@genesislcap/foundation-events!logger:var",
1123
+ "docComment": "/**\n * @public\n */\n",
1124
+ "excerptTokens": [
1125
+ {
1126
+ "kind": "Content",
1127
+ "text": "logger: "
1128
+ },
1129
+ {
1130
+ "kind": "Content",
1131
+ "text": "import(\"@genesislcap/foundation-utils\")."
1132
+ },
1133
+ {
1134
+ "kind": "Reference",
1135
+ "text": "Logger",
1136
+ "canonicalReference": "@genesislcap/foundation-utils!Logger:interface"
1137
+ }
1138
+ ],
1139
+ "fileUrlPath": "src/utils/logger.ts",
1140
+ "isReadonly": true,
1141
+ "releaseTag": "Public",
1142
+ "name": "logger",
1143
+ "variableTypeTokenRange": {
1144
+ "startIndex": 1,
1145
+ "endIndex": 3
1146
+ }
1147
+ },
1148
+ {
1149
+ "kind": "Variable",
1150
+ "canonicalReference": "@genesislcap/foundation-events!registerEmitter:var",
1151
+ "docComment": "/**\n * Register an emitter with the DI.\n *\n * @typeParam TEventDetailMap - The {@link EventDetailMap}.\n *\n * @public\n */\n",
1152
+ "excerptTokens": [
1153
+ {
1154
+ "kind": "Content",
1155
+ "text": "registerEmitter: "
1156
+ },
1157
+ {
1158
+ "kind": "Content",
1159
+ "text": "<TEventDetailMap extends "
1160
+ },
1161
+ {
1162
+ "kind": "Reference",
1163
+ "text": "EventDetailMap",
1164
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
1165
+ },
1166
+ {
1167
+ "kind": "Content",
1168
+ "text": ">() => import(\"@microsoft/fast-foundation\")."
1169
+ },
1170
+ {
1171
+ "kind": "Reference",
1172
+ "text": "InterfaceSymbol",
1173
+ "canonicalReference": "@microsoft/fast-foundation!InterfaceSymbol:type"
1174
+ },
1175
+ {
1176
+ "kind": "Content",
1177
+ "text": "<"
1178
+ },
1179
+ {
1180
+ "kind": "Reference",
1181
+ "text": "EventEmitterDI",
1182
+ "canonicalReference": "@genesislcap/foundation-events!EventEmitterDI:interface"
1183
+ },
1184
+ {
1185
+ "kind": "Content",
1186
+ "text": "<TEventDetailMap>>"
1187
+ }
1188
+ ],
1189
+ "fileUrlPath": "src/eventEmitter/eventEmitterDI.ts",
1190
+ "isReadonly": true,
1191
+ "releaseTag": "Public",
1192
+ "name": "registerEmitter",
1193
+ "variableTypeTokenRange": {
1194
+ "startIndex": 1,
1195
+ "endIndex": 8
1196
+ }
1197
+ },
1198
+ {
1199
+ "kind": "Variable",
1200
+ "canonicalReference": "@genesislcap/foundation-events!targetFirstSelectedValue:var",
1201
+ "docComment": "/**\n * @public\n */\n",
1202
+ "excerptTokens": [
1203
+ {
1204
+ "kind": "Content",
1205
+ "text": "targetFirstSelectedValue: "
1206
+ },
1207
+ {
1208
+ "kind": "Reference",
1209
+ "text": "ValueGetter",
1210
+ "canonicalReference": "@genesislcap/foundation-events!~ValueGetter:type"
1211
+ }
1212
+ ],
1213
+ "fileUrlPath": "src/types.ts",
1214
+ "isReadonly": true,
1215
+ "releaseTag": "Public",
1216
+ "name": "targetFirstSelectedValue",
1217
+ "variableTypeTokenRange": {
1218
+ "startIndex": 1,
1219
+ "endIndex": 2
1220
+ }
1221
+ },
1222
+ {
1223
+ "kind": "Variable",
1224
+ "canonicalReference": "@genesislcap/foundation-events!targetValue:var",
1225
+ "docComment": "/**\n * @public\n */\n",
1226
+ "excerptTokens": [
1227
+ {
1228
+ "kind": "Content",
1229
+ "text": "targetValue: "
1230
+ },
1231
+ {
1232
+ "kind": "Reference",
1233
+ "text": "ValueGetter",
1234
+ "canonicalReference": "@genesislcap/foundation-events!~ValueGetter:type"
1235
+ }
1236
+ ],
1237
+ "fileUrlPath": "src/types.ts",
1238
+ "isReadonly": true,
1239
+ "releaseTag": "Public",
1240
+ "name": "targetValue",
1241
+ "variableTypeTokenRange": {
1242
+ "startIndex": 1,
1243
+ "endIndex": 2
1244
+ }
1245
+ },
1246
+ {
1247
+ "kind": "Interface",
1248
+ "canonicalReference": "@genesislcap/foundation-events!TypedEmitter:interface",
1249
+ "docComment": "/**\n * @public\n */\n",
1250
+ "excerptTokens": [
1251
+ {
1252
+ "kind": "Content",
1253
+ "text": "export interface TypedEmitter<TEventDetailMap extends "
1254
+ },
1255
+ {
1256
+ "kind": "Reference",
1257
+ "text": "EventDetailMap",
1258
+ "canonicalReference": "@genesislcap/foundation-events!EventDetailMap:type"
1259
+ },
1260
+ {
1261
+ "kind": "Content",
1262
+ "text": "> "
1263
+ }
1264
+ ],
1265
+ "fileUrlPath": "src/types.ts",
1266
+ "releaseTag": "Public",
1267
+ "typeParameters": [
1268
+ {
1269
+ "typeParameterName": "TEventDetailMap",
1270
+ "constraintTokenRange": {
1271
+ "startIndex": 1,
1272
+ "endIndex": 2
1273
+ },
1274
+ "defaultTypeTokenRange": {
1275
+ "startIndex": 0,
1276
+ "endIndex": 0
1277
+ }
1278
+ }
1279
+ ],
1280
+ "name": "TypedEmitter",
1281
+ "preserveMemberOrder": false,
1282
+ "members": [
1283
+ {
1284
+ "kind": "MethodSignature",
1285
+ "canonicalReference": "@genesislcap/foundation-events!TypedEmitter#$emit:member(1)",
1286
+ "docComment": "",
1287
+ "excerptTokens": [
1288
+ {
1289
+ "kind": "Content",
1290
+ "text": "$emit<K extends "
1291
+ },
1292
+ {
1293
+ "kind": "Content",
1294
+ "text": "keyof TEventDetailMap & string"
1295
+ },
1296
+ {
1297
+ "kind": "Content",
1298
+ "text": ">(...args: "
1299
+ },
1300
+ {
1301
+ "kind": "Content",
1302
+ "text": "TEventDetailMap[K] extends void ? [type: K, options?: "
1303
+ },
1304
+ {
1305
+ "kind": "Reference",
1306
+ "text": "EmitOptions",
1307
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
1308
+ },
1309
+ {
1310
+ "kind": "Content",
1311
+ "text": "] : [type: K, detail: TEventDetailMap[K], options?: "
1312
+ },
1313
+ {
1314
+ "kind": "Reference",
1315
+ "text": "EmitOptions",
1316
+ "canonicalReference": "@genesislcap/foundation-events!EmitOptions:type"
1317
+ },
1318
+ {
1319
+ "kind": "Content",
1320
+ "text": "]"
1321
+ },
1322
+ {
1323
+ "kind": "Content",
1324
+ "text": "): "
1325
+ },
1326
+ {
1327
+ "kind": "Reference",
1328
+ "text": "EmitReturn",
1329
+ "canonicalReference": "@genesislcap/foundation-events!EmitReturn:type"
1330
+ },
1331
+ {
1332
+ "kind": "Content",
1333
+ "text": ";"
1334
+ }
1335
+ ],
1336
+ "isOptional": false,
1337
+ "returnTypeTokenRange": {
1338
+ "startIndex": 9,
1339
+ "endIndex": 10
1340
+ },
1341
+ "releaseTag": "Public",
1342
+ "overloadIndex": 1,
1343
+ "parameters": [
1344
+ {
1345
+ "parameterName": "args",
1346
+ "parameterTypeTokenRange": {
1347
+ "startIndex": 3,
1348
+ "endIndex": 8
1349
+ },
1350
+ "isOptional": false
1351
+ }
1352
+ ],
1353
+ "typeParameters": [
1354
+ {
1355
+ "typeParameterName": "K",
1356
+ "constraintTokenRange": {
1357
+ "startIndex": 1,
1358
+ "endIndex": 2
1359
+ },
1360
+ "defaultTypeTokenRange": {
1361
+ "startIndex": 0,
1362
+ "endIndex": 0
1363
+ }
1364
+ }
1365
+ ],
1366
+ "name": "$emit"
1367
+ }
1368
+ ],
1369
+ "extendsTokenRanges": []
1370
+ }
1371
+ ]
1372
+ }
1373
+ ]
1374
+ }