Migrate environmentVariables
Summary: _typescript_ Reviewed By: jknoxville Differential Revision: D16709690 fbshipit-source-id: efa0431ab1ab0e2fc81ae4a9155d2f0a3ab9e4c5
This commit is contained in:
committed by
Facebook Github Bot
parent
8135727f5a
commit
9e423e4bef
@@ -5,7 +5,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {parseFlipperPorts} from '../environmentVariables';
|
||||
import {parseFlipperPorts} from '../environmentVariables.tsx';
|
||||
|
||||
test('Valid port overrides are parsed correctly', () => {
|
||||
const overrides = parseFlipperPorts('1111,2222');
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
export function parseFlipperPorts(
|
||||
envVar: string,
|
||||
): ?{insecure: number, secure: number} {
|
||||
): {insecure: number; secure: number} | undefined {
|
||||
const components = envVar.split(',');
|
||||
const ports = components.map(x => parseInt(x, 10));
|
||||
|
||||
Reference in New Issue
Block a user