File tree 1 file changed +12
-4
lines changed 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,22 @@ export const CreateErrorType = <T extends Array<unknown>>(
10
10
cm : string | ( ( ...t : T ) => string )
11
11
) =>
12
12
class extends SchedulerError {
13
- private readonly t : T
13
+ /**
14
+ * FIXME: args should be `private`
15
+ * Bug Reported: https://github.com/Microsoft/TypeScript/issues/17293
16
+ */
17
+ public readonly args : T
14
18
15
19
constructor ( ...args : T ) {
16
20
super ( )
17
- this . t = args
21
+ this . args = args
18
22
}
19
23
20
- protected createMessage ( ) : string {
21
- return typeof cm === 'string' ? cm : cm ( ...this . t )
24
+ /**
25
+ * FIXME: createMessage could be `private` ???
26
+ * Bug Reported: https://github.com/Microsoft/TypeScript/issues/17293
27
+ */
28
+ public createMessage ( ) : string {
29
+ return typeof cm === 'string' ? cm : cm ( ...this . args )
22
30
}
23
31
}
You can’t perform that action at this time.
0 commit comments