From 213805f21ec5e7a181485d809369e23689bd32c4 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Thu, 8 Feb 2018 09:19:16 -0800 Subject: [PATCH] Avoid duplicating types in index-browser. --- .../src/config/files/index-browser.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/packages/babel-core/src/config/files/index-browser.js b/packages/babel-core/src/config/files/index-browser.js index 07b8079568..4e5cb5fe62 100644 --- a/packages/babel-core/src/config/files/index-browser.js +++ b/packages/babel-core/src/config/files/index-browser.js @@ -1,21 +1,8 @@ // @flow -export type ConfigFile = { - filepath: string, - dirname: string, - options: {}, -}; +import type { ConfigFile, IgnoreFile, RelativeConfig } from "./configuration"; -export type IgnoreFile = { - filepath: string, - dirname: string, - ignore: Array, -}; - -export type RelativeConfig = { - config: ConfigFile | null, - ignore: IgnoreFile | null, -}; +export type { ConfigFile, IgnoreFile, RelativeConfig }; export function findRelativeConfig( filepath: string,