Skip to content

Commit 9d21496

Browse files
zertoshfacebook-github-bot
authored andcommitted
Fix ESLint upgrade "parsing error"
Reviewed By: adamjernst Differential Revision: D6959356 fbshipit-source-id: 77c61998f23a6acd7cdfe2c87d8760a23d957800
1 parent bba19e8 commit 9d21496

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Libraries/Core/Timers/JSTimers.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,7 @@ const JSTimers = {
244244
* @param {function} func Callback to be invoked after `duration` ms.
245245
* @param {number} duration Number of milliseconds.
246246
*/
247-
setTimeout: function(
248-
func: Function,
249-
duration: number,
250-
...args?: any
251-
): number {
247+
setTimeout: function(func: Function, duration: number, ...args: any): number {
252248
if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {
253249
console.warn(
254250
ANDROID_LONG_TIMER_MESSAGE +
@@ -273,7 +269,7 @@ const JSTimers = {
273269
setInterval: function(
274270
func: Function,
275271
duration: number,
276-
...args?: any
272+
...args: any
277273
): number {
278274
if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {
279275
console.warn(
@@ -296,7 +292,7 @@ const JSTimers = {
296292
* @param {function} func Callback to be invoked before the end of the
297293
* current JavaScript execution loop.
298294
*/
299-
setImmediate: function(func: Function, ...args?: any) {
295+
setImmediate: function(func: Function, ...args: any) {
300296
const id = _allocateCallback(
301297
() => func.apply(undefined, args),
302298
'setImmediate',

0 commit comments

Comments
 (0)