Socket
Book a DemoInstallSign in
Socket

@types/babel__preset-env

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/babel__preset-env

TypeScript definitions for @babel/preset-env

ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
7.10.0
Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/babel__preset-env

Summary

This package contains type definitions for @babel/preset-env (https://github.com/babel/babel/tree/master/packages/babel-preset-env).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__preset-env.

index.d.ts

export interface Options {
    targets?: TargetsOptions | undefined;
    bugfixes?: boolean | undefined;
    spec?: boolean | undefined;
    loose?: boolean | undefined;
    modules?: ModuleOption | undefined;
    debug?: boolean | undefined;
    include?: PluginList | undefined;
    exclude?: PluginList | undefined;
    useBuiltIns?: UseBuiltInsOption | undefined;
    corejs?: CorejsOption | undefined;
    forceAllTransforms?: boolean | undefined;
    configPath?: string | undefined;
    ignoreBrowserslistConfig?: boolean | undefined;
    shippedProposals?: boolean | undefined;
    /**
     * The Browserslist environment to use.
     * Added in v7.10.0.
     *
     * See {@link https://babeljs.io/docs/babel-preset-env.html#browserslistenv}
     */
    browserslistEnv?: string | undefined;
}

/**
 * "targets" config option:
 * https://babeljs.io/docs/en/babel-preset-env#targets
 */
export type TargetsOptions =
    | BrowserslistQuery
    | readonly BrowserslistQuery[]
    | { [key in Target]?: string }
    | { esmodules: true }
    | { node: string | "current" | true }
    | { safari: string | "tp" }
    | { browsers: string | readonly string[] };

export type BrowserslistQuery = string;

/**
 * List of supported Browserslist targets:
 * Source: https://github.com/browserslist/browserslist#browsers
 */
export type Target =
    | "Android"
    | "Baidu"
    | "BlackBerry"
    | "bb"
    | "Chrome"
    | "ChromeAndroid"
    | "and_chr"
    | "Edge"
    | "Electron"
    | "Explorer"
    | "ie"
    | "ExplorerMobile"
    | "ie_mob"
    | "Firefox"
    | "ff"
    | "FirefoxAndroid"
    | "and_ff"
    | "iOS"
    | "ios_saf"
    | "Node"
    | "Opera"
    | "OperaMini"
    | "op_mini"
    | "OperaMobile"
    | "op_mob"
    | "QQAndroid"
    | "and_qq"
    | "Safari"
    | "Samsung"
    | "UCAndroid"
    | "and_uc"
    | "kaios";

/**
 * https://babeljs.io/docs/en/babel-preset-env#modules
 */
export type ModuleOption =
    | "amd"
    | "umd"
    | "systemjs"
    | "commonjs"
    | "cjs"
    | "auto"
    | false;

export type PluginList = readonly PluginListItem[];
export type PluginListItem = string | RegExp;

export type UseBuiltInsOption =
    | "usage"
    | "entry"
    | false;

export type CorejsOption =
    | CorejsVersion
    | { version: CorejsVersion; proposals: boolean };

/**
 * https://babeljs.io/docs/babel-preset-env#corejs
 */
export type CorejsVersion = 2 | 3 | string;

Additional Details

  • Last updated: Sun, 26 Jan 2025 09:32:24 GMT
  • Dependencies: none

Credits

These definitions were written by Slava Fomin II.

FAQs

Package last updated on 26 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.