Avoid duplicating types in index-browser.

This commit is contained in:
Logan Smyth
2018-02-08 09:19:16 -08:00
parent 28d13cb09b
commit 213805f21e

View File

@@ -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<string>,
};
export type RelativeConfig = {
config: ConfigFile | null,
ignore: IgnoreFile | null,
};
export type { ConfigFile, IgnoreFile, RelativeConfig };
export function findRelativeConfig(
filepath: string,