@@ -105,44 +105,44 @@ export const getEventHandlers = (context: ComponentPublicInstance|null, _typedCo
105
105
106
106
let typedConfig = Object . assign ( { } , _typedConfig ) as TypedOptions
107
107
108
- typedConfig . onComplete = ( ) => {
109
- context ?. $emit ( 'onComplete' )
108
+ typedConfig . onComplete = ( ... args ) => {
109
+ context ?. $emit ( 'onComplete' , ... args )
110
110
}
111
111
112
- typedConfig . preStringTyped = ( ) => {
113
- context ?. $emit ( 'preStringTyped' )
112
+ typedConfig . preStringTyped = ( ... args ) => {
113
+ context ?. $emit ( 'preStringTyped' , ... args )
114
114
}
115
115
116
- typedConfig . onStringTyped = ( ) => {
117
- context ?. $emit ( 'onStringTyped' )
116
+ typedConfig . onStringTyped = ( ... args ) => {
117
+ context ?. $emit ( 'onStringTyped' , ... args )
118
118
}
119
119
120
- typedConfig . onLastStringBackspaced = ( ) => {
121
- context ?. $emit ( 'onLastStringBackspaced' )
120
+ typedConfig . onLastStringBackspaced = ( ... args ) => {
121
+ context ?. $emit ( 'onLastStringBackspaced' , ... args )
122
122
}
123
123
124
- typedConfig . onTypingPaused = ( ) => {
125
- context ?. $emit ( 'onTypingPaused' )
124
+ typedConfig . onTypingPaused = ( ... args ) => {
125
+ context ?. $emit ( 'onTypingPaused' , ... args )
126
126
}
127
127
128
- typedConfig . onTypingResumed = ( ) => {
129
- context ?. $emit ( 'onTypingResumed' )
128
+ typedConfig . onTypingResumed = ( ... args ) => {
129
+ context ?. $emit ( 'onTypingResumed' , ... args )
130
130
}
131
131
132
- typedConfig . onReset = ( ) => {
133
- context ?. $emit ( 'onReset' )
132
+ typedConfig . onReset = ( ... args ) => {
133
+ context ?. $emit ( 'onReset' , ... args )
134
134
}
135
135
136
- typedConfig . onStop = ( ) => {
137
- context ?. $emit ( 'onStop' )
136
+ typedConfig . onStop = ( ... args ) => {
137
+ context ?. $emit ( 'onStop' , ... args )
138
138
}
139
139
140
- typedConfig . onStart = ( ) => {
141
- context ?. $emit ( 'onStart' )
140
+ typedConfig . onStart = ( ... args ) => {
141
+ context ?. $emit ( 'onStart' , ... args )
142
142
}
143
143
144
- typedConfig . onDestroy = ( ) => {
145
- context ?. $emit ( 'onDestroy' )
144
+ typedConfig . onDestroy = ( ... args ) => {
145
+ context ?. $emit ( 'onDestroy' , ... args )
146
146
}
147
147
148
148
return typedConfig
0 commit comments