From 1b99e8b8303cb207f11d03d886fc53e7272a6b13 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 13 Aug 2019 08:19:52 -0700 Subject: [PATCH] Migrate Idler Summary: _typescript_ Reviewed By: danielbuechele Differential Revision: D16763946 fbshipit-source-id: 96eb0cdaca8a6cd731a6d16f3bea02471c691c01 --- src/utils/{Idler.js => Idler.tsx} | 2 +- src/utils/__tests__/Idler.node.js | 2 +- src/utils/serialization.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/utils/{Idler.js => Idler.tsx} (93%) diff --git a/src/utils/Idler.js b/src/utils/Idler.tsx similarity index 93% rename from src/utils/Idler.js rename to src/utils/Idler.tsx index 772ab68ef..d20d71711 100644 --- a/src/utils/Idler.js +++ b/src/utils/Idler.tsx @@ -5,7 +5,7 @@ * @format */ -import {CancelledPromiseError} from './errors.tsx'; +import {CancelledPromiseError} from './errors'; export class Idler { lastIdle: number; diff --git a/src/utils/__tests__/Idler.node.js b/src/utils/__tests__/Idler.node.js index 38570a980..fd7027bae 100644 --- a/src/utils/__tests__/Idler.node.js +++ b/src/utils/__tests__/Idler.node.js @@ -5,7 +5,7 @@ * @format */ -import {Idler} from '../Idler'; +import {Idler} from '../Idler.tsx'; test('Idler should interrupt', async () => { const idler = new Idler(); diff --git a/src/utils/serialization.js b/src/utils/serialization.js index 2bdd51661..a4b11ef9c 100644 --- a/src/utils/serialization.js +++ b/src/utils/serialization.js @@ -5,7 +5,7 @@ * @format */ -import {Idler} from './Idler'; +import {Idler} from './Idler.tsx'; export async function serialize( obj: Object, idler?: Idler,