forked from babel/babel
/
types.d.ts
37 lines (32 loc) 路 864 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Targets, engine names defined in compat-tables
export type Target =
| "node"
| "chrome"
| "opera"
| "edge"
| "firefox"
| "safari"
| "ie"
| "ios"
| "android"
| "electron"
| "samsung";
export type Targets = {
[target in Target]?: string;
};
export type TargetsTuple = {
[target in Exclude<Target, "node">]: string;
} & {
node: string | true;
};
export type Browsers = string | ReadonlyArray<string>;
export type InputTargets = {
browsers?: Browsers;
// When `true`, this completely replaces the `browsers` option.
// When `intersect`, this is intersected with the `browsers`
// option (giving the higher browsers as the result).
// TODO(Babel 8): Make `true` behave like `intersect` and
// remove `intersect`.
esmodules?: boolean | "intersect";
} & Targets;
export type { BrowserslistBrowserName } from "./targets";