diff --git a/src/utils/__tests__/environmentVariables.node.js b/src/utils/__tests__/environmentVariables.node.js index a1072301d..f91ffd81e 100644 --- a/src/utils/__tests__/environmentVariables.node.js +++ b/src/utils/__tests__/environmentVariables.node.js @@ -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'); diff --git a/src/utils/environmentVariables.js b/src/utils/environmentVariables.tsx similarity index 91% rename from src/utils/environmentVariables.js rename to src/utils/environmentVariables.tsx index 1a7267b78..7cbdf779e 100644 --- a/src/utils/environmentVariables.js +++ b/src/utils/environmentVariables.tsx @@ -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));