From 6a0da24eb2fdb249ca60978ea66acbe5290c76d3 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 14 Aug 2019 10:01:35 -0700 Subject: [PATCH] Migrate utils/index Summary: _typescript_ Reviewed By: danielbuechele Differential Revision: D16805609 fbshipit-source-id: 57eda17f45fc2dfe94a0d34948be5b673591a8ee --- headless/index.js | 2 +- src/NotificationsHub.js | 2 +- src/index.js | 2 +- src/utils/{index.js => index.tsx} | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/utils/{index.js => index.tsx} (62%) diff --git a/headless/index.js b/headless/index.js index de576c497..f1da85dec 100644 --- a/headless/index.js +++ b/headless/index.js @@ -25,7 +25,7 @@ import {getPersistentPlugins} from '../src/utils/pluginUtils.tsx'; import {serialize} from '../src/utils/serialization'; import type BaseDevice from '../src/devices/BaseDevice.tsx'; -import {getStringFromErrorLike} from '../src/utils/index'; +import {getStringFromErrorLike} from '../src/utils/index.tsx'; type Action = {|exit: true, result: string|} | {|exit: false|}; diff --git a/src/NotificationsHub.js b/src/NotificationsHub.js index 95ee38d78..5efaa5bfc 100644 --- a/src/NotificationsHub.js +++ b/src/NotificationsHub.js @@ -37,7 +37,7 @@ import { updateCategoryBlacklist, } from './reducers/notifications.tsx'; import {selectPlugin} from './reducers/connections.tsx'; -import {textContent} from './utils/index'; +import {textContent} from './utils/index.tsx'; import createPaste from './fb-stubs/createPaste.tsx'; export default class Notifications extends FlipperDevicePlugin<{}> { diff --git a/src/index.js b/src/index.js index 8badb4087..d20dd5406 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,7 @@ export {default as styled, keyframes} from 'react-emotion'; export * from './ui/index.js'; -export * from './utils/index.js'; +export {getStringFromErrorLike, textContent} from './utils/index.tsx'; export {default as GK} from './fb-stubs/GK.tsx'; export {default as createPaste} from './fb-stubs/createPaste.tsx'; export {graphQLQuery} from './fb-stubs/user.tsx'; diff --git a/src/utils/index.js b/src/utils/index.tsx similarity index 62% rename from src/utils/index.js rename to src/utils/index.tsx index 0420624a2..4f9f54b0c 100644 --- a/src/utils/index.js +++ b/src/utils/index.tsx @@ -5,5 +5,5 @@ * @format */ -export {default as textContent} from './textContent.tsx'; -export {getStringFromErrorLike} from './errors.tsx'; +export {default as textContent} from './textContent'; +export {getStringFromErrorLike} from './errors';