From a314d1d93075f0d5b05518618798d704e910ac10 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 9 Aug 2019 02:38:10 -0700 Subject: [PATCH] Migrate ErrorReporter Summary: _typescript_ Reviewed By: jknoxville Differential Revision: D16648552 fbshipit-source-id: 969c549594d76dca6552338a25f6ab7d8047d14d --- src/fb-stubs/{ErrorReporter.js => ErrorReporter.tsx} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/fb-stubs/{ErrorReporter.js => ErrorReporter.tsx} (84%) diff --git a/src/fb-stubs/ErrorReporter.js b/src/fb-stubs/ErrorReporter.tsx similarity index 84% rename from src/fb-stubs/ErrorReporter.js rename to src/fb-stubs/ErrorReporter.tsx index 37963857b..cd3448376 100644 --- a/src/fb-stubs/ErrorReporter.js +++ b/src/fb-stubs/ErrorReporter.tsx @@ -10,8 +10,8 @@ * The recommended way to use this, is to instantiate it inside Logger, * so that all logged errors get reported to this class. */ -export function cleanStack(stack: string, loc: ?string) {} -import type ScribeLogger from './ScribeLogger'; +export function cleanStack(stack: string, loc?: string) {} +import {ScribeLogger} from './ScribeLogger'; export type ObjectError = | Error