From b69a1549802daddc4dc69f548bffa54c3ab40b91 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Fri, 3 Aug 2018 23:23:51 +0800 Subject: [PATCH] revert remove type to stay this pr clean. --- local-cli/bundle/bundleCommandLineArgs.js | 2 +- local-cli/dependencies/dependencies.js | 2 +- local-cli/runAndroid/runAndroid.js | 2 +- local-cli/runIOS/runIOS.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/local-cli/bundle/bundleCommandLineArgs.js b/local-cli/bundle/bundleCommandLineArgs.js index 445654234e7eb5..4853f877ab7d6f 100644 --- a/local-cli/bundle/bundleCommandLineArgs.js +++ b/local-cli/bundle/bundleCommandLineArgs.js @@ -55,7 +55,7 @@ module.exports = [ 'Specifies the maximum number of workers the worker-pool ' + 'will spawn for transforming files. This defaults to the number of the ' + 'cores available on your machine.', - parse: (workers) => Number(workers), + parse: (workers: string) => Number(workers), }, { command: '--sourcemap-output [string]', diff --git a/local-cli/dependencies/dependencies.js b/local-cli/dependencies/dependencies.js index 379fe80513ce32..6191548073ca98 100644 --- a/local-cli/dependencies/dependencies.js +++ b/local-cli/dependencies/dependencies.js @@ -100,7 +100,7 @@ module.exports = { 'Specifies the maximum number of workers the worker-pool ' + 'will spawn for transforming files. This defaults to the number of the ' + 'cores available on your machine.', - parse: (workers) => Number(workers), + parse: (workers: string) => Number(workers), }, { command: '--dev [boolean]', diff --git a/local-cli/runAndroid/runAndroid.js b/local-cli/runAndroid/runAndroid.js index d33767857f67f4..6835c97bcb0bf0 100644 --- a/local-cli/runAndroid/runAndroid.js +++ b/local-cli/runAndroid/runAndroid.js @@ -472,7 +472,7 @@ module.exports = { { command: '--port [number]', default: process.env.RCT_METRO_PORT || 8081, - parse: (val) => Number(val), + parse: (val: string) => Number(val), }, ], }; diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index 02c5e8213dfcbc..dfabb92b894a4b 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -447,7 +447,7 @@ module.exports = { { command: '--port [number]', default: process.env.RCT_METRO_PORT || 8081, - parse: (val) => Number(val), + parse: (val: string) => Number(val), }, ], };