PHP 8.2.30
Preview: compat.d.ts Size: 1.30 KB
/home/byroehnu/.trash/node_modules11/core-js-compat/compat.d.ts

import type { ModuleName, Target, TargetVersion } from "./shared";

type StringOrRegExp = string | RegExp;

type Modules = StringOrRegExp | readonly StringOrRegExp[];

type BrowserslistQuery = string | ReadonlyArray<string>;

type Environments = {
  [target in Target]?: string | number;
};

type Targets = Environments & {
  browsers?: Environments | BrowserslistQuery,
  esmodules?: boolean | 'intersect',
};

type CompatOptions = {
  /** entry / module / namespace / an array of them, by default - all `core-js` modules */
  modules?: Modules,
  /** a blacklist, entry / module / namespace / an array of them, by default - empty list */
  exclude?: Modules,
  /** optional browserslist or core-js-compat format query */
  targets?: Targets | BrowserslistQuery,
  /** used `core-js` version, by default the latest */
  version?: string,
  /** inverse of the result, shows modules that are NOT required for the target environment */
  inverse?: boolean,
  /**
   * @deprecated use `modules` instead
   */
  filter?: Modules
};

type CompatOutput = {
  /** array of required modules */
  list: ModuleName[],
  /** object with targets for each module */
  targets: {
    [module: ModuleName]: {
      [target in Target]?: TargetVersion
    }
  }
}

declare function compat(options?: CompatOptions): CompatOutput;

export = compat;

Directory Contents

Dirs: 0 × Files: 17

Name Size Perms Modified Actions
1.30 KB lrw-r--r-- 2026-02-28 00:28:38
Edit Download
2.44 KB lrw-r--r-- 2026-02-28 00:26:42
Edit Download
182.19 KB lrw-r--r-- 2026-02-28 00:27:48
Edit Download
582.46 KB lrw-r--r-- 2026-02-28 00:28:28
Edit Download
394 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
198 B lrw-r--r-- 2026-02-28 00:28:38
Edit Download
588 B lrw-r--r-- 2026-02-28 00:26:52
Edit Download
1.78 KB lrw-r--r-- 2026-02-28 00:27:02
Edit Download
782 B lrw-r--r-- 2026-02-28 00:28:40
Edit Download
367 B lrw-r--r-- 2026-02-28 00:27:12
Edit Download
1.11 KB lrw-r--r-- 2026-02-28 00:26:32
Edit Download
15.85 KB lrw-r--r-- 2026-02-28 00:28:30
Edit Download
14.18 KB lrw-r--r-- 2026-02-28 00:28:32
Edit Download
726 B lrw-r--r-- 2026-02-28 00:28:34
Edit Download
8.03 KB lrw-r--r-- 2026-02-28 00:28:36
Edit Download
529 B lrw-r--r-- 2026-02-28 00:28:42
Edit Download
2.38 KB lrw-r--r-- 2026-02-28 00:27:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).