@fluidframework/core-interfaces 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.216897

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 (87) hide show
  1. package/api-extractor-lint.json +13 -0
  2. package/api-extractor.json +0 -4
  3. package/api-report/core-interfaces.api.md +61 -61
  4. package/dist/core-interfaces-alpha.d.ts +105 -905
  5. package/dist/core-interfaces-beta.d.ts +105 -905
  6. package/dist/core-interfaces-public.d.ts +105 -905
  7. package/dist/core-interfaces-untrimmed.d.ts +87 -3
  8. package/dist/disposable.d.ts +1 -0
  9. package/dist/disposable.d.ts.map +1 -1
  10. package/dist/disposable.js.map +1 -1
  11. package/dist/error.d.ts +8 -0
  12. package/dist/error.d.ts.map +1 -1
  13. package/dist/error.js +1 -0
  14. package/dist/error.js.map +1 -1
  15. package/dist/events.d.ts +8 -1
  16. package/dist/events.d.ts.map +1 -1
  17. package/dist/events.js.map +1 -1
  18. package/dist/fluidLoadable.d.ts +16 -0
  19. package/dist/fluidLoadable.d.ts.map +1 -1
  20. package/dist/fluidLoadable.js +6 -0
  21. package/dist/fluidLoadable.js.map +1 -1
  22. package/dist/fluidPackage.d.ts +9 -0
  23. package/dist/fluidPackage.d.ts.map +1 -1
  24. package/dist/fluidPackage.js +3 -0
  25. package/dist/fluidPackage.js.map +1 -1
  26. package/dist/fluidRouter.d.ts +12 -0
  27. package/dist/fluidRouter.d.ts.map +1 -1
  28. package/dist/fluidRouter.js +1 -0
  29. package/dist/fluidRouter.js.map +1 -1
  30. package/dist/handles.d.ts +14 -0
  31. package/dist/handles.d.ts.map +1 -1
  32. package/dist/handles.js +6 -0
  33. package/dist/handles.js.map +1 -1
  34. package/dist/logger.d.ts +16 -0
  35. package/dist/logger.d.ts.map +1 -1
  36. package/dist/logger.js +1 -0
  37. package/dist/logger.js.map +1 -1
  38. package/dist/provider.d.ts +3 -2
  39. package/dist/provider.d.ts.map +1 -1
  40. package/dist/provider.js.map +1 -1
  41. package/lib/core-interfaces-alpha.d.ts +105 -905
  42. package/lib/core-interfaces-beta.d.ts +105 -905
  43. package/lib/core-interfaces-public.d.ts +105 -905
  44. package/lib/core-interfaces-untrimmed.d.ts +87 -3
  45. package/lib/disposable.d.ts +1 -0
  46. package/lib/disposable.d.ts.map +1 -1
  47. package/lib/disposable.js.map +1 -1
  48. package/lib/error.d.ts +8 -0
  49. package/lib/error.d.ts.map +1 -1
  50. package/lib/error.js +1 -0
  51. package/lib/error.js.map +1 -1
  52. package/lib/events.d.ts +8 -1
  53. package/lib/events.d.ts.map +1 -1
  54. package/lib/events.js.map +1 -1
  55. package/lib/fluidLoadable.d.ts +16 -0
  56. package/lib/fluidLoadable.d.ts.map +1 -1
  57. package/lib/fluidLoadable.js +6 -0
  58. package/lib/fluidLoadable.js.map +1 -1
  59. package/lib/fluidPackage.d.ts +9 -0
  60. package/lib/fluidPackage.d.ts.map +1 -1
  61. package/lib/fluidPackage.js +3 -0
  62. package/lib/fluidPackage.js.map +1 -1
  63. package/lib/fluidRouter.d.ts +12 -0
  64. package/lib/fluidRouter.d.ts.map +1 -1
  65. package/lib/fluidRouter.js +1 -0
  66. package/lib/fluidRouter.js.map +1 -1
  67. package/lib/handles.d.ts +14 -0
  68. package/lib/handles.d.ts.map +1 -1
  69. package/lib/handles.js +6 -0
  70. package/lib/handles.js.map +1 -1
  71. package/lib/logger.d.ts +16 -0
  72. package/lib/logger.d.ts.map +1 -1
  73. package/lib/logger.js +1 -0
  74. package/lib/logger.js.map +1 -1
  75. package/lib/provider.d.ts +3 -2
  76. package/lib/provider.d.ts.map +1 -1
  77. package/lib/provider.js.map +1 -1
  78. package/package.json +3 -2
  79. package/src/disposable.ts +1 -0
  80. package/src/error.ts +8 -0
  81. package/src/events.ts +8 -1
  82. package/src/fluidLoadable.ts +16 -0
  83. package/src/fluidPackage.ts +9 -0
  84. package/src/fluidRouter.ts +12 -0
  85. package/src/handles.ts +14 -0
  86. package/src/logger.ts +16 -0
  87. package/src/provider.ts +3 -2
@@ -20,12 +20,13 @@
20
20
  * ```
21
21
  *
22
22
  * interface B will now extend interface A and its events
23
- *
23
+ * @internal
24
24
  */
25
25
  export declare type ExtendEventProvider<TBaseEvent extends IEvent, TBase extends IEventProvider<TBaseEvent>, TEvent extends TBaseEvent> = Omit<Omit<Omit<TBase, "on">, "once">, "off"> & IEventProvider<TBaseEvent> & IEventProvider<TEvent>;
26
26
 
27
27
  /**
28
28
  * Error types the Fluid Framework may report.
29
+ * @internal
29
30
  */
30
31
  export declare const FluidErrorTypes: {
31
32
  /**
@@ -50,6 +51,9 @@ export declare const FluidErrorTypes: {
50
51
  readonly usageError: "usageError";
51
52
  };
52
53
 
54
+ /**
55
+ * @internal
56
+ */
53
57
  export declare type FluidErrorTypes = (typeof FluidErrorTypes)[keyof typeof FluidErrorTypes];
54
58
 
55
59
  /**
@@ -83,7 +87,7 @@ export declare type FluidErrorTypes = (typeof FluidErrorTypes)[keyof typeof Flui
83
87
  *
84
88
  * You can inspect multiple types via a intersection. For example:
85
89
  * `FluidObject<IFoo & IBar>`
86
- *
90
+ * @internal
87
91
  */
88
92
  export declare type FluidObject<T = unknown> = {
89
93
  [P in FluidObjectProviderKeys<T>]?: T[P];
@@ -96,7 +100,7 @@ export declare type FluidObject<T = unknown> = {
96
100
  * See {@link FluidObject}
97
101
  *
98
102
  * For example `FluidObjectKeys<IFoo & IBar>` would result in `"IFoo" | "IBar"`
99
- *
103
+ * @internal
100
104
  */
101
105
  export declare type FluidObjectKeys<T> = keyof FluidObject<T>;
102
106
 
@@ -124,11 +128,13 @@ export declare type FluidObjectKeys<T> = keyof FluidObject<T>;
124
128
  *
125
129
  * This pattern enables discovery, and delegation in a standard way which is central
126
130
  * to FluidObject pattern.
131
+ * @internal
127
132
  */
128
133
  export declare type FluidObjectProviderKeys<T, TProp extends keyof T = keyof T> = string extends TProp ? never : number extends TProp ? never : TProp extends keyof Required<T>[TProp] ? Required<T>[TProp] extends Required<Required<T>[TProp]>[TProp] ? TProp : never : never;
129
134
 
130
135
  /**
131
136
  * Base interface for objects that require lifetime management via explicit disposal.
137
+ * @internal
132
138
  */
133
139
  export declare interface IDisposable {
134
140
  /**
@@ -153,6 +159,7 @@ export declare interface IDisposable {
153
159
  * those from container-definitions. Once fully migrated, this will be a base interface for all errors and
154
160
  * warnings emitted by the Fluid Framework. Currently only the container layer is using IErrorBase.
155
161
  * Runtime and others will follow soon.
162
+ * @internal
156
163
  */
157
164
  export declare interface IErrorBase extends Partial<Error> {
158
165
  /**
@@ -191,6 +198,7 @@ export declare interface IErrorBase extends Partial<Error> {
191
198
 
192
199
  /**
193
200
  * Base interface for error event emitters.
201
+ * @internal
194
202
  */
195
203
  export declare interface IErrorEvent extends IEvent {
196
204
  /**
@@ -203,6 +211,7 @@ export declare interface IErrorEvent extends IEvent {
203
211
 
204
212
  /**
205
213
  * Base interface for event emitters.
214
+ * @internal
206
215
  */
207
216
  export declare interface IEvent {
208
217
  /**
@@ -220,6 +229,7 @@ export declare interface IEvent {
220
229
 
221
230
  /**
222
231
  * Base interface for event providers.
232
+ * @internal
223
233
  */
224
234
  export declare interface IEventProvider<TEvent extends IEvent> {
225
235
  /**
@@ -238,6 +248,7 @@ export declare interface IEventProvider<TEvent extends IEvent> {
238
248
 
239
249
  /**
240
250
  * The placeholder type that should be used instead of `this` in events.
251
+ * @internal
241
252
  */
242
253
  export declare type IEventThisPlaceHolder = {
243
254
  thisPlaceHolder: "thisPlaceHolder";
@@ -251,6 +262,7 @@ export declare type IEventThisPlaceHolder = {
251
262
  * It currently supports the max of 15 event overloads which is more than we use anywhere.
252
263
  * At more than 15 overloads we start to hit {@link https://github.com/microsoft/TypeScript/issues/37209 | TS2589}.
253
264
  * If we need to move beyond 15 we should evaluate using a mapped type pattern like `{"event":(listenerArgs)=>void}`
265
+ * @internal
254
266
  */
255
267
  export declare type IEventTransformer<TThis, TEvent extends IEvent> = TEvent extends {
256
268
  (event: infer E0, listener: (...args: infer A0) => void): any;
@@ -409,6 +421,7 @@ export declare type IEventTransformer<TThis, TEvent extends IEvent> = TEvent ext
409
421
  *
410
422
  * @deprecated in favor of {@link @fluidframework/container-definitions#IFluidCodeDetails}
411
423
  * to have code loading modules in same package.
424
+ * @internal
412
425
  */
413
426
  export declare interface IFluidCodeDetails {
414
427
  /**
@@ -425,6 +438,7 @@ export declare interface IFluidCodeDetails {
425
438
  /**
426
439
  * @deprecated in favor of {@link @fluidframework/container-definitions#IFluidCodeDetailsComparer}
427
440
  * to have code loading modules in same package.
441
+ * @internal
428
442
  */
429
443
  export declare const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer;
430
444
 
@@ -433,6 +447,7 @@ export declare const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsCo
433
447
  *
434
448
  * @deprecated in favor of {@link @fluidframework/container-definitions#IFluidCodeDetailsComparer}
435
449
  * to have code loading modules in same package.
450
+ * @internal
436
451
  */
437
452
  export declare interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {
438
453
  /**
@@ -464,15 +479,20 @@ export declare interface IFluidCodeDetailsComparer extends IProvideFluidCodeDeta
464
479
  *
465
480
  * @deprecated in favor of {@link @fluidframework/container-definitions#IFluidCodeDetailsConfig}
466
481
  * to have code loading modules in same package.
482
+ * @internal
467
483
  */
468
484
  export declare interface IFluidCodeDetailsConfig {
469
485
  readonly [key: string]: string;
470
486
  }
471
487
 
488
+ /**
489
+ * @internal
490
+ */
472
491
  export declare const IFluidHandle: keyof IProvideFluidHandle;
473
492
 
474
493
  /**
475
494
  * Handle to a shared {@link FluidObject}.
495
+ * @internal
476
496
  */
477
497
  export declare interface IFluidHandle<T = FluidObject & IFluidLoadable> extends IProvideFluidHandle {
478
498
  /**
@@ -504,10 +524,14 @@ export declare interface IFluidHandle<T = FluidObject & IFluidLoadable> extends
504
524
  bind(handle: IFluidHandle): void;
505
525
  }
506
526
 
527
+ /**
528
+ * @internal
529
+ */
507
530
  export declare const IFluidHandleContext: keyof IProvideFluidHandleContext;
508
531
 
509
532
  /**
510
533
  * Describes a routing context from which other `IFluidHandleContext`s are defined.
534
+ * @internal
511
535
  */
512
536
  export declare interface IFluidHandleContext extends IProvideFluidHandleContext {
513
537
  /**
@@ -530,10 +554,14 @@ export declare interface IFluidHandleContext extends IProvideFluidHandleContext
530
554
  resolveHandle(request: IRequest): Promise<IResponse>;
531
555
  }
532
556
 
557
+ /**
558
+ * @internal
559
+ */
533
560
  export declare const IFluidLoadable: keyof IProvideFluidLoadable;
534
561
 
535
562
  /**
536
563
  * A shared FluidObject has a URL from which it can be referenced
564
+ * @internal
537
565
  */
538
566
  export declare interface IFluidLoadable extends IProvideFluidLoadable {
539
567
  handle: IFluidHandle;
@@ -547,6 +575,7 @@ export declare interface IFluidLoadable extends IProvideFluidLoadable {
547
575
  *
548
576
  * @deprecated In favor of {@link @fluidframework/container-definitions#IFluidPackage}
549
577
  * to have code loading modules in same package.
578
+ * @internal
550
579
  */
551
580
  export declare interface IFluidPackage {
552
581
  /**
@@ -576,6 +605,7 @@ export declare interface IFluidPackage {
576
605
  *
577
606
  * @deprecated In favor of {@link @fluidframework/container-definitions#IFluidPackageEnvironment}
578
607
  * to have code loading modules in same package.
608
+ * @internal
579
609
  */
580
610
  export declare interface IFluidPackageEnvironment {
581
611
  /**
@@ -600,18 +630,26 @@ export declare interface IFluidPackageEnvironment {
600
630
 
601
631
  /**
602
632
  * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
633
+ * @internal
603
634
  */
604
635
  export declare const IFluidRouter: keyof IProvideFluidRouter;
605
636
 
606
637
  /**
607
638
  * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
639
+ * @internal
608
640
  */
609
641
  export declare interface IFluidRouter extends IProvideFluidRouter {
610
642
  request(request: IRequest): Promise<IResponse>;
611
643
  }
612
644
 
645
+ /**
646
+ * @internal
647
+ */
613
648
  export declare const IFluidRunnable: keyof IProvideFluidRunnable;
614
649
 
650
+ /**
651
+ * @internal
652
+ */
615
653
  export declare interface IFluidRunnable {
616
654
  run(...args: any[]): Promise<void>;
617
655
  stop(reason?: string): void;
@@ -619,6 +657,7 @@ export declare interface IFluidRunnable {
619
657
 
620
658
  /**
621
659
  * Generic wrapper for an unrecognized/uncategorized error object
660
+ * @internal
622
661
  */
623
662
  export declare interface IGenericError extends IErrorBase {
624
663
  /**
@@ -630,6 +669,7 @@ export declare interface IGenericError extends IErrorBase {
630
669
 
631
670
  /**
632
671
  * An error object that supports exporting its properties to be logged to telemetry
672
+ * @internal
633
673
  */
634
674
  export declare interface ILoggingError extends Error {
635
675
  /**
@@ -641,19 +681,29 @@ export declare interface ILoggingError extends Error {
641
681
  /**
642
682
  * @deprecated in favor of {@link @fluidframework/container-definitions#IProvideFluidCodeDetailsComparer}
643
683
  * to have code loading modules in same package.
684
+ * @internal
644
685
  */
645
686
  export declare interface IProvideFluidCodeDetailsComparer {
646
687
  readonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;
647
688
  }
648
689
 
690
+ /**
691
+ * @internal
692
+ */
649
693
  export declare interface IProvideFluidHandle {
650
694
  readonly IFluidHandle: IFluidHandle;
651
695
  }
652
696
 
697
+ /**
698
+ * @internal
699
+ */
653
700
  export declare interface IProvideFluidHandleContext {
654
701
  readonly IFluidHandleContext: IFluidHandleContext;
655
702
  }
656
703
 
704
+ /**
705
+ * @internal
706
+ */
657
707
  export declare interface IProvideFluidLoadable {
658
708
  readonly IFluidLoadable: IFluidLoadable;
659
709
  }
@@ -661,24 +711,37 @@ export declare interface IProvideFluidLoadable {
661
711
  /**
662
712
  * Request routing
663
713
  * @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
714
+ * @internal
664
715
  */
665
716
  export declare interface IProvideFluidRouter {
666
717
  readonly IFluidRouter: IFluidRouter;
667
718
  }
668
719
 
720
+ /**
721
+ * @internal
722
+ */
669
723
  export declare interface IProvideFluidRunnable {
670
724
  readonly IFluidRunnable: IFluidRunnable;
671
725
  }
672
726
 
727
+ /**
728
+ * @internal
729
+ */
673
730
  export declare interface IRequest {
674
731
  url: string;
675
732
  headers?: IRequestHeader;
676
733
  }
677
734
 
735
+ /**
736
+ * @internal
737
+ */
678
738
  export declare interface IRequestHeader {
679
739
  [index: string]: any;
680
740
  }
681
741
 
742
+ /**
743
+ * @internal
744
+ */
682
745
  export declare interface IResponse {
683
746
  mimeType: string;
684
747
  status: number;
@@ -692,6 +755,7 @@ export declare interface IResponse {
692
755
  /**
693
756
  * @deprecated in favor of {@link @fluidframework/container-definitions#isFluidCodeDetails}
694
757
  * to have code loading modules in same package.
758
+ * @internal
695
759
  */
696
760
  export declare const isFluidCodeDetails: (details: unknown) => details is Readonly<IFluidCodeDetails>;
697
761
 
@@ -702,6 +766,7 @@ export declare const isFluidCodeDetails: (details: unknown) => details is Readon
702
766
  * to have code loading modules in same package.
703
767
  *
704
768
  * @param pkg - The package json data to check if it is a Fluid package.
769
+ * @internal
705
770
  */
706
771
  export declare const isFluidPackage: (pkg: unknown) => pkg is Readonly<IFluidPackage>;
707
772
 
@@ -709,6 +774,7 @@ export declare const isFluidPackage: (pkg: unknown) => pkg is Readonly<IFluidPac
709
774
  * @see {@link Tagged} for info on tagging
710
775
  *
711
776
  * @deprecated Use Tagged\<TelemetryBaseEventPropertyType\>
777
+ * @internal
712
778
  */
713
779
  export declare interface ITaggedTelemetryPropertyType {
714
780
  value: TelemetryEventPropertyType;
@@ -720,6 +786,7 @@ export declare interface ITaggedTelemetryPropertyType {
720
786
  * Can contain any number of properties that get serialized as json payload.
721
787
  * @param category - category of the event, like "error", "performance", "generic", etc.
722
788
  * @param eventName - name of the event.
789
+ * @internal
723
790
  */
724
791
  export declare interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
725
792
  category: string;
@@ -729,6 +796,7 @@ export declare interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
729
796
  /**
730
797
  * Interface to output telemetry events.
731
798
  * Implemented by hosting app / loader
799
+ * @internal
732
800
  */
733
801
  export declare interface ITelemetryBaseLogger {
734
802
  send(event: ITelemetryBaseEvent, logLevel?: LogLevel): void;
@@ -737,6 +805,7 @@ export declare interface ITelemetryBaseLogger {
737
805
 
738
806
  /**
739
807
  * JSON-serializable properties, which will be logged with telemetry.
808
+ * @internal
740
809
  */
741
810
  export declare type ITelemetryBaseProperties = ITelemetryProperties;
742
811
 
@@ -746,6 +815,7 @@ export declare type ITelemetryBaseProperties = ITelemetryProperties;
746
815
  *
747
816
  * @deprecated For internal use within FluidFramework, use ITelemetryErrorEventExt in \@fluidframework/telemetry-utils.
748
817
  * No replacement intended for FluidFramework consumers.
818
+ * @internal
749
819
  */
750
820
  export declare interface ITelemetryErrorEvent extends ITelemetryProperties {
751
821
  eventName: string;
@@ -757,6 +827,7 @@ export declare interface ITelemetryErrorEvent extends ITelemetryProperties {
757
827
  *
758
828
  * @deprecated For internal use within FluidFramework, use ITelemetryGenericEventExt in \@fluidframework/telemetry-utils.
759
829
  * No replacement intended for FluidFramework consumers.
830
+ * @internal
760
831
  */
761
832
  export declare interface ITelemetryGenericEvent extends ITelemetryProperties {
762
833
  eventName: string;
@@ -770,6 +841,7 @@ export declare interface ITelemetryGenericEvent extends ITelemetryProperties {
770
841
  *
771
842
  * @deprecated For internal use within FluidFramework, use ITelemetryLoggerExt in \@fluidframework/telemetry-utils.
772
843
  * No replacement intended for FluidFramework consumers.
844
+ * @internal
773
845
  */
774
846
  export declare interface ITelemetryLogger extends ITelemetryBaseLogger {
775
847
  /**
@@ -807,6 +879,7 @@ export declare interface ITelemetryLogger extends ITelemetryBaseLogger {
807
879
  *
808
880
  * @deprecated For internal use within FluidFramework, use ITelemetryPerformanceEventExt in \@fluidframework/telemetry-utils.
809
881
  * No replacement intended for FluidFramework consumers.
882
+ * @internal
810
883
  */
811
884
  export declare interface ITelemetryPerformanceEvent extends ITelemetryGenericEvent {
812
885
  duration?: number;
@@ -816,6 +889,7 @@ export declare interface ITelemetryPerformanceEvent extends ITelemetryGenericEve
816
889
  * {@inheritDoc ITelemetryBaseProperties}
817
890
  *
818
891
  * @deprecated Renamed to {@link ITelemetryBaseProperties}
892
+ * @internal
819
893
  */
820
894
  export declare interface ITelemetryProperties {
821
895
  [index: string]: TelemetryEventPropertyType | Tagged<TelemetryEventPropertyType>;
@@ -823,6 +897,7 @@ export declare interface ITelemetryProperties {
823
897
 
824
898
  /**
825
899
  * Warning emitted when requests to storage are being throttled
900
+ * @internal
826
901
  */
827
902
  export declare interface IThrottlingWarning extends IErrorBase {
828
903
  /**
@@ -834,6 +909,7 @@ export declare interface IThrottlingWarning extends IErrorBase {
834
909
 
835
910
  /**
836
911
  * Error indicating an API is being used improperly resulting in an invalid operation.
912
+ * @internal
837
913
  */
838
914
  export declare interface IUsageError extends IErrorBase {
839
915
  /**
@@ -844,6 +920,7 @@ export declare interface IUsageError extends IErrorBase {
844
920
 
845
921
  /**
846
922
  * Specify levels of the logs.
923
+ * @internal
847
924
  */
848
925
  export declare const LogLevel: {
849
926
  readonly verbose: 10;
@@ -853,11 +930,13 @@ export declare const LogLevel: {
853
930
 
854
931
  /**
855
932
  * Specify a level to the log to filter out logs based on the level.
933
+ * @internal
856
934
  */
857
935
  export declare type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
858
936
 
859
937
  /**
860
938
  * Does the type replacement by changing types of {@link IEventThisPlaceHolder} to `TThis`
939
+ * @internal
861
940
  */
862
941
  export declare type ReplaceIEventThisPlaceHolder<L extends any[], TThis> = L extends any[] ? {
863
942
  [K in keyof L]: L[K] extends IEventThisPlaceHolder ? TThis : L[K];
@@ -869,6 +948,7 @@ export declare type ReplaceIEventThisPlaceHolder<L extends any[], TThis> = L ext
869
948
  *
870
949
  * This indicates that the value should be organized or handled differently by loggers in various first or third
871
950
  * party scenarios. For example, tags are used to mark data that should not be stored in logs for privacy reasons.
951
+ * @internal
872
952
  */
873
953
  export declare interface Tagged<V, T extends string = string> {
874
954
  value: V;
@@ -881,6 +961,7 @@ export declare interface Tagged<V, T extends string = string> {
881
961
  * @remarks Logging entire objects is considered extremely dangerous from a telemetry point of view because people can
882
962
  * easily add fields to objects that shouldn't be logged and not realize it's going to be logged.
883
963
  * General best practice is to explicitly log the fields you care about from objects.
964
+ * @internal
884
965
  */
885
966
  export declare type TelemetryBaseEventPropertyType = TelemetryEventPropertyType;
886
967
 
@@ -888,6 +969,7 @@ export declare type TelemetryBaseEventPropertyType = TelemetryEventPropertyType;
888
969
  * Examples of known categories, however category can be any string for extensibility.
889
970
  *
890
971
  * @deprecated Moved to \@fluidframework/telemetry-utils package
972
+ * @internal
891
973
  */
892
974
  export declare type TelemetryEventCategory = "generic" | "error" | "performance";
893
975
 
@@ -895,12 +977,14 @@ export declare type TelemetryEventCategory = "generic" | "error" | "performance"
895
977
  * {@inheritDoc TelemetryBaseEventPropertyType}
896
978
  *
897
979
  * @deprecated Renamed to {@link TelemetryBaseEventPropertyType}
980
+ * @internal
898
981
  */
899
982
  export declare type TelemetryEventPropertyType = string | number | boolean | undefined;
900
983
 
901
984
  /**
902
985
  * Transforms the event overload by replacing {@link IEventThisPlaceHolder} with `TThis` in the event listener
903
986
  * arguments and having the overload return `TTHis` as well
987
+ * @internal
904
988
  */
905
989
  export declare type TransformedEvent<TThis, E, A extends any[]> = (event: E, listener: (...args: ReplaceIEventThisPlaceHolder<A, TThis>) => void) => TThis;
906
990
 
@@ -4,6 +4,7 @@
4
4
  */
5
5
  /**
6
6
  * Base interface for objects that require lifetime management via explicit disposal.
7
+ * @internal
7
8
  */
8
9
  export interface IDisposable {
9
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../src/disposable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B"}
1
+ {"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../src/disposable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"disposable.js","sourceRoot":"","sources":["../src/disposable.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Base interface for objects that require lifetime management via explicit disposal.\n */\nexport interface IDisposable {\n\t/**\n\t * Whether or not the object has been disposed.\n\t * If true, the object should be considered invalid, and its other state should be disregarded.\n\t */\n\treadonly disposed: boolean;\n\n\t/**\n\t * Dispose of the object and its resources.\n\t * @param error - Optional error indicating the reason for the disposal, if the object was\n\t * disposed as the result of an error.\n\t */\n\tdispose(error?: Error): void;\n}\n"]}
1
+ {"version":3,"file":"disposable.js","sourceRoot":"","sources":["../src/disposable.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Base interface for objects that require lifetime management via explicit disposal.\n * @internal\n */\nexport interface IDisposable {\n\t/**\n\t * Whether or not the object has been disposed.\n\t * If true, the object should be considered invalid, and its other state should be disregarded.\n\t */\n\treadonly disposed: boolean;\n\n\t/**\n\t * Dispose of the object and its resources.\n\t * @param error - Optional error indicating the reason for the disposal, if the object was\n\t * disposed as the result of an error.\n\t */\n\tdispose(error?: Error): void;\n}\n"]}
package/dist/error.d.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  import { ITelemetryBaseProperties } from "./index";
6
6
  /**
7
7
  * Error types the Fluid Framework may report.
8
+ * @internal
8
9
  */
9
10
  export declare const FluidErrorTypes: {
10
11
  /**
@@ -28,6 +29,9 @@ export declare const FluidErrorTypes: {
28
29
  */
29
30
  readonly usageError: "usageError";
30
31
  };
32
+ /**
33
+ * @internal
34
+ */
31
35
  export type FluidErrorTypes = (typeof FluidErrorTypes)[keyof typeof FluidErrorTypes];
32
36
  /**
33
37
  * Base interface for all errors and warnings emitted the container.
@@ -38,6 +42,7 @@ export type FluidErrorTypes = (typeof FluidErrorTypes)[keyof typeof FluidErrorTy
38
42
  * those from container-definitions. Once fully migrated, this will be a base interface for all errors and
39
43
  * warnings emitted by the Fluid Framework. Currently only the container layer is using IErrorBase.
40
44
  * Runtime and others will follow soon.
45
+ * @internal
41
46
  */
42
47
  export interface IErrorBase extends Partial<Error> {
43
48
  /**
@@ -75,6 +80,7 @@ export interface IErrorBase extends Partial<Error> {
75
80
  }
76
81
  /**
77
82
  * Generic wrapper for an unrecognized/uncategorized error object
83
+ * @internal
78
84
  */
79
85
  export interface IGenericError extends IErrorBase {
80
86
  /**
@@ -85,6 +91,7 @@ export interface IGenericError extends IErrorBase {
85
91
  }
86
92
  /**
87
93
  * Error indicating an API is being used improperly resulting in an invalid operation.
94
+ * @internal
88
95
  */
89
96
  export interface IUsageError extends IErrorBase {
90
97
  /**
@@ -94,6 +101,7 @@ export interface IUsageError extends IErrorBase {
94
101
  }
95
102
  /**
96
103
  * Warning emitted when requests to storage are being throttled
104
+ * @internal
97
105
  */
98
106
  export interface IThrottlingWarning extends IErrorBase {
99
107
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,eAAe;IAC3B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEM,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,KAAK,CAAC;IACjD;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,sBAAsB,CAAC,IAAI,wBAAwB,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAChD;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,eAAe,CAAC,YAAY,CAAC;IAIxD,KAAK,CAAC,EAAE,GAAG,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC9C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,eAAe,CAAC,UAAU,CAAC;CACtD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACrD;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,eAAe,CAAC,eAAe,CAAC;IAC3D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACnC"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC3B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEM,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,KAAK,CAAC;IACjD;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,sBAAsB,CAAC,IAAI,wBAAwB,CAAC;CACpD;AAED;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAChD;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,eAAe,CAAC,YAAY,CAAC;IAIxD,KAAK,CAAC,EAAE,GAAG,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC9C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,eAAe,CAAC,UAAU,CAAC;CACtD;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACrD;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,eAAe,CAAC,eAAe,CAAC;IAC3D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACnC"}
package/dist/error.js CHANGED
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.FluidErrorTypes = void 0;
8
8
  /**
9
9
  * Error types the Fluid Framework may report.
10
+ * @internal
10
11
  */
11
12
  exports.FluidErrorTypes = {
12
13
  /**
package/dist/error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;GAEG;AACU,QAAA,eAAe,GAAG;IAC9B;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ITelemetryBaseProperties } from \"./index\";\n\n/**\n * Error types the Fluid Framework may report.\n */\nexport const FluidErrorTypes = {\n\t/**\n\t * Some error, most likely an exception caught by runtime and propagated to container as critical error\n\t */\n\tgenericError: \"genericError\",\n\n\t/**\n\t * Throttling error from server. Server is busy and is asking not to reconnect for some time\n\t */\n\tthrottlingError: \"throttlingError\",\n\n\t/**\n\t * Data loss error detected by Container / DeltaManager. Likely points to storage issue.\n\t */\n\tdataCorruptionError: \"dataCorruptionError\",\n\n\t/**\n\t * Error encountered when processing an operation. May correlate with data corruption.\n\t */\n\tdataProcessingError: \"dataProcessingError\",\n\n\t/**\n\t * Error indicating an API is being used improperly resulting in an invalid operation.\n\t */\n\tusageError: \"usageError\",\n} as const;\nexport type FluidErrorTypes = (typeof FluidErrorTypes)[keyof typeof FluidErrorTypes];\n\n/**\n * Base interface for all errors and warnings emitted the container.\n *\n * @remarks\n *\n * We are in the process of unifying error types across layers of the Framework. For now we have only migrated\n * those from container-definitions. Once fully migrated, this will be a base interface for all errors and\n * warnings emitted by the Fluid Framework. Currently only the container layer is using IErrorBase.\n * Runtime and others will follow soon.\n */\nexport interface IErrorBase extends Partial<Error> {\n\t/**\n\t * A type tag differentiating kinds of errors emitted by the container.\n\t *\n\t * @see See {@link FluidErrorTypes#genericError} for some common examples.\n\t * - container\n\t * - runtime\n\t * - drivers\n\t */\n\treadonly errorType: string;\n\n\t/**\n\t * See {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error | Error.message}\n\t *\n\t * @remarks\n\t *\n\t * Privacy Note - This is a freeform string that we may not control in all cases (e.g. a dependency throws an error)\n\t * If there are known cases where this contains privacy-sensitive data it will be tagged and included in the result\n\t * of getTelemetryProperties. When logging, consider fetching it that way rather than straight from this field.\n\t */\n\treadonly message: string;\n\n\t/**\n\t * See {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name | Error.name}\n\t */\n\treadonly name?: string;\n\n\t/**\n\t * See {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stack | Error.stack}\n\t */\n\treadonly stack?: string;\n\n\t/**\n\t * Returns all properties of this error object that are fit for logging.\n\t * Some may be tagged to indicate they contain some kind of sensitive data.\n\t */\n\tgetTelemetryProperties?(): ITelemetryBaseProperties;\n}\n\n/**\n * Generic wrapper for an unrecognized/uncategorized error object\n */\nexport interface IGenericError extends IErrorBase {\n\t/**\n\t * {@inheritDoc IErrorBase.errorType}\n\t */\n\treadonly errorType: typeof FluidErrorTypes.genericError;\n\n\t// TODO: Use `unknown` instead (API-Breaking)\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\terror?: any;\n}\n\n/**\n * Error indicating an API is being used improperly resulting in an invalid operation.\n */\nexport interface IUsageError extends IErrorBase {\n\t/**\n\t * {@inheritDoc IErrorBase.errorType}\n\t */\n\treadonly errorType: typeof FluidErrorTypes.usageError;\n}\n\n/**\n * Warning emitted when requests to storage are being throttled\n */\nexport interface IThrottlingWarning extends IErrorBase {\n\t/**\n\t * {@inheritDoc IErrorBase.errorType}\n\t */\n\treadonly errorType: typeof FluidErrorTypes.throttlingError;\n\treadonly retryAfterSeconds: number;\n}\n"]}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC9B;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ITelemetryBaseProperties } from \"./index\";\n\n/**\n * Error types the Fluid Framework may report.\n * @internal\n */\nexport const FluidErrorTypes = {\n\t/**\n\t * Some error, most likely an exception caught by runtime and propagated to container as critical error\n\t */\n\tgenericError: \"genericError\",\n\n\t/**\n\t * Throttling error from server. Server is busy and is asking not to reconnect for some time\n\t */\n\tthrottlingError: \"throttlingError\",\n\n\t/**\n\t * Data loss error detected by Container / DeltaManager. Likely points to storage issue.\n\t */\n\tdataCorruptionError: \"dataCorruptionError\",\n\n\t/**\n\t * Error encountered when processing an operation. May correlate with data corruption.\n\t */\n\tdataProcessingError: \"dataProcessingError\",\n\n\t/**\n\t * Error indicating an API is being used improperly resulting in an invalid operation.\n\t */\n\tusageError: \"usageError\",\n} as const;\n/**\n * @internal\n */\nexport type FluidErrorTypes = (typeof FluidErrorTypes)[keyof typeof FluidErrorTypes];\n\n/**\n * Base interface for all errors and warnings emitted the container.\n *\n * @remarks\n *\n * We are in the process of unifying error types across layers of the Framework. For now we have only migrated\n * those from container-definitions. Once fully migrated, this will be a base interface for all errors and\n * warnings emitted by the Fluid Framework. Currently only the container layer is using IErrorBase.\n * Runtime and others will follow soon.\n * @internal\n */\nexport interface IErrorBase extends Partial<Error> {\n\t/**\n\t * A type tag differentiating kinds of errors emitted by the container.\n\t *\n\t * @see See {@link FluidErrorTypes#genericError} for some common examples.\n\t * - container\n\t * - runtime\n\t * - drivers\n\t */\n\treadonly errorType: string;\n\n\t/**\n\t * See {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error | Error.message}\n\t *\n\t * @remarks\n\t *\n\t * Privacy Note - This is a freeform string that we may not control in all cases (e.g. a dependency throws an error)\n\t * If there are known cases where this contains privacy-sensitive data it will be tagged and included in the result\n\t * of getTelemetryProperties. When logging, consider fetching it that way rather than straight from this field.\n\t */\n\treadonly message: string;\n\n\t/**\n\t * See {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name | Error.name}\n\t */\n\treadonly name?: string;\n\n\t/**\n\t * See {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stack | Error.stack}\n\t */\n\treadonly stack?: string;\n\n\t/**\n\t * Returns all properties of this error object that are fit for logging.\n\t * Some may be tagged to indicate they contain some kind of sensitive data.\n\t */\n\tgetTelemetryProperties?(): ITelemetryBaseProperties;\n}\n\n/**\n * Generic wrapper for an unrecognized/uncategorized error object\n * @internal\n */\nexport interface IGenericError extends IErrorBase {\n\t/**\n\t * {@inheritDoc IErrorBase.errorType}\n\t */\n\treadonly errorType: typeof FluidErrorTypes.genericError;\n\n\t// TODO: Use `unknown` instead (API-Breaking)\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\terror?: any;\n}\n\n/**\n * Error indicating an API is being used improperly resulting in an invalid operation.\n * @internal\n */\nexport interface IUsageError extends IErrorBase {\n\t/**\n\t * {@inheritDoc IErrorBase.errorType}\n\t */\n\treadonly errorType: typeof FluidErrorTypes.usageError;\n}\n\n/**\n * Warning emitted when requests to storage are being throttled\n * @internal\n */\nexport interface IThrottlingWarning extends IErrorBase {\n\t/**\n\t * {@inheritDoc IErrorBase.errorType}\n\t */\n\treadonly errorType: typeof FluidErrorTypes.throttlingError;\n\treadonly retryAfterSeconds: number;\n}\n"]}
package/dist/events.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  */
5
5
  /**
6
6
  * Base interface for event emitters.
7
+ * @internal
7
8
  */
8
9
  export interface IEvent {
9
10
  /**
@@ -20,6 +21,7 @@ export interface IEvent {
20
21
  }
21
22
  /**
22
23
  * Base interface for error event emitters.
24
+ * @internal
23
25
  */
24
26
  export interface IErrorEvent extends IEvent {
25
27
  /**
@@ -31,6 +33,7 @@ export interface IErrorEvent extends IEvent {
31
33
  }
32
34
  /**
33
35
  * Base interface for event providers.
36
+ * @internal
34
37
  */
35
38
  export interface IEventProvider<TEvent extends IEvent> {
36
39
  /**
@@ -68,17 +71,19 @@ export interface IEventProvider<TEvent extends IEvent> {
68
71
  * ```
69
72
  *
70
73
  * interface B will now extend interface A and its events
71
- *
74
+ * @internal
72
75
  */
73
76
  export type ExtendEventProvider<TBaseEvent extends IEvent, TBase extends IEventProvider<TBaseEvent>, TEvent extends TBaseEvent> = Omit<Omit<Omit<TBase, "on">, "once">, "off"> & IEventProvider<TBaseEvent> & IEventProvider<TEvent>;
74
77
  /**
75
78
  * The placeholder type that should be used instead of `this` in events.
79
+ * @internal
76
80
  */
77
81
  export type IEventThisPlaceHolder = {
78
82
  thisPlaceHolder: "thisPlaceHolder";
79
83
  };
80
84
  /**
81
85
  * Does the type replacement by changing types of {@link IEventThisPlaceHolder} to `TThis`
86
+ * @internal
82
87
  */
83
88
  export type ReplaceIEventThisPlaceHolder<L extends any[], TThis> = L extends any[] ? {
84
89
  [K in keyof L]: L[K] extends IEventThisPlaceHolder ? TThis : L[K];
@@ -86,6 +91,7 @@ export type ReplaceIEventThisPlaceHolder<L extends any[], TThis> = L extends any
86
91
  /**
87
92
  * Transforms the event overload by replacing {@link IEventThisPlaceHolder} with `TThis` in the event listener
88
93
  * arguments and having the overload return `TTHis` as well
94
+ * @internal
89
95
  */
90
96
  export type TransformedEvent<TThis, E, A extends any[]> = (event: E, listener: (...args: ReplaceIEventThisPlaceHolder<A, TThis>) => void) => TThis;
91
97
  /**
@@ -96,6 +102,7 @@ export type TransformedEvent<TThis, E, A extends any[]> = (event: E, listener: (
96
102
  * It currently supports the max of 15 event overloads which is more than we use anywhere.
97
103
  * At more than 15 overloads we start to hit {@link https://github.com/microsoft/TypeScript/issues/37209 | TS2589}.
98
104
  * If we need to move beyond 15 we should evaluate using a mapped type pattern like `{"event":(listenerArgs)=>void}`
105
+ * @internal
99
106
  */
100
107
  export type IEventTransformer<TThis, TEvent extends IEvent> = TEvent extends {
101
108
  (event: infer E0, listener: (...args: infer A0) => void): any;