File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,10 @@ export type Options = {
27
27
waitUntilExit ?: ( ) => Promise < void > ;
28
28
} ;
29
29
30
- type ThrottledFunc < T extends ( ...args : any [ ] ) => void > = ReturnType < typeof throttle < T > > ;
31
-
32
30
export default class Ink {
33
31
private readonly options : Options ;
34
32
private readonly log : LogUpdate ;
35
- private readonly throttledLog : LogUpdate | ThrottledFunc < LogUpdate > ;
33
+ private readonly throttledLog : LogUpdate ;
36
34
// Ignore last render after unmounting a tree to prevent empty output before exit
37
35
private isUnmounted : boolean ;
38
36
private lastOutput : string ;
@@ -66,7 +64,7 @@ export default class Ink {
66
64
: throttle ( this . log , undefined , {
67
65
leading : true ,
68
66
trailing : true ,
69
- } ) ;
67
+ } ) as unknown as LogUpdate ;
70
68
71
69
// Ignore last render after unmounting a tree to prevent empty output before exit
72
70
this . isUnmounted = false ;
You can’t perform that action at this time.
0 commit comments