Move type and interface into index.d.ts

This commit is contained in:
James Miller Burgess
2019-08-04 15:37:41 +09:00
parent ac24d0067d
commit 143b5d4916
2 changed files with 6 additions and 6 deletions

6
tools/index.d.ts vendored
View File

@@ -17,4 +17,10 @@ declare global {
// func-utils.ts makes usage of this feature
displayName?: string;
}
type StringOrRegExp = string | RegExp;
interface Discards {
[packageName: string]: StringOrRegExp[];
}
}

View File

@@ -2,12 +2,6 @@ import * as files from "../fs/files";
const hasOwn = Object.prototype.hasOwnProperty;
type StringOrRegExp = string | RegExp;
interface Discards {
[packageName: string]: StringOrRegExp[];
}
// This class encapsulates a structured specification of files and
// directories that should be stripped from the node_modules directories
// of Meteor packages during `meteor build`, as requested by calling