File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -244,11 +244,7 @@ const JSTimers = {
244
244
* @param {function } func Callback to be invoked after `duration` ms.
245
245
* @param {number } duration Number of milliseconds.
246
246
*/
247
- setTimeout : function (
248
- func : Function ,
249
- duration : number ,
250
- ...args ?: any
251
- ) : number {
247
+ setTimeout : function ( func : Function , duration : number , ...args : any ) : number {
252
248
if ( __DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS ) {
253
249
console . warn (
254
250
ANDROID_LONG_TIMER_MESSAGE +
@@ -273,7 +269,7 @@ const JSTimers = {
273
269
setInterval : function (
274
270
func : Function ,
275
271
duration : number ,
276
- ...args ? : any
272
+ ...args : any
277
273
) : number {
278
274
if ( __DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS ) {
279
275
console . warn (
@@ -296,7 +292,7 @@ const JSTimers = {
296
292
* @param {function } func Callback to be invoked before the end of the
297
293
* current JavaScript execution loop.
298
294
*/
299
- setImmediate : function ( func : Function , ...args ? : any ) {
295
+ setImmediate : function ( func : Function , ...args : any ) {
300
296
const id = _allocateCallback (
301
297
( ) => func . apply ( undefined , args ) ,
302
298
'setImmediate' ,
You can’t perform that action at this time.
0 commit comments