@@ -92,73 +92,79 @@ const defaults = {
9292 * Before it begins typing
9393 * @param {Typed } self
9494 */
95- onBegin : ( self ) => { } ,
95+ onBegin : ( self ) => { } ,
9696
9797 /**
9898 * All typing is complete
9999 * @param {Typed } self
100100 */
101- onComplete : ( self ) => { } ,
101+ onComplete : ( self ) => { } ,
102102
103103 /**
104104 * Before each string is typed
105105 * @param {number } arrayPos
106106 * @param {Typed } self
107107 */
108- preStringTyped : ( arrayPos , self ) => { } ,
108+ preStringTyped : ( arrayPos , self ) => { } ,
109109
110110 /**
111111 * After each string is typed
112112 * @param {number } arrayPos
113113 * @param {Typed } self
114114 */
115- onStringTyped : ( arrayPos , self ) => { } ,
115+ onStringTyped : ( arrayPos , self ) => { } ,
116116
117117 /**
118118 * During looping, after last string is typed
119119 * @param {Typed } self
120120 */
121- onLastStringBackspaced : ( self ) => { } ,
121+ onLastStringBackspaced : ( self ) => { } ,
122122
123123 /**
124124 * Typing has been stopped
125125 * @param {number } arrayPos
126126 * @param {Typed } self
127127 */
128- onTypingPaused : ( arrayPos , self ) => { } ,
128+ onTypingPaused : ( arrayPos , self ) => { } ,
129129
130130 /**
131131 * Typing has been started after being stopped
132132 * @param {number } arrayPos
133133 * @param {Typed } self
134134 */
135- onTypingResumed : ( arrayPos , self ) => { } ,
135+ onTypingResumed : ( arrayPos , self ) => { } ,
136136
137137 /**
138138 * After reset
139139 * @param {Typed } self
140140 */
141- onReset : ( self ) => { } ,
141+ onReset : ( self ) => { } ,
142142
143143 /**
144144 * After stop
145145 * @param {number } arrayPos
146146 * @param {Typed } self
147147 */
148- onStop : ( arrayPos , self ) => { } ,
148+ onStop : ( arrayPos , self ) => { } ,
149149
150150 /**
151151 * After start
152152 * @param {number } arrayPos
153153 * @param {Typed } self
154154 */
155- onStart : ( arrayPos , self ) => { } ,
155+ onStart : ( arrayPos , self ) => { } ,
156156
157157 /**
158158 * After destroy
159159 * @param {Typed } self
160160 */
161- onDestroy : ( self ) => { }
161+ onDestroy : ( self ) => { } ,
162+ /**
163+ * After a character has been appended.
164+ * @param {* } char The character that has been appended
165+ * @param {* } self
166+ */
167+ onCharAppended : ( char , self ) => { } ,
162168} ;
163169
164170export default defaults ;
0 commit comments