index.d.ts 782 B

123456789101112131415161718192021222324252627
  1. import type compat from './compat'
  2. import type getModulesListForTargetVersion from './get-modules-list-for-target-version';
  3. import type { ModuleName, Target, TargetVersion } from './shared'
  4. type CompatData = {
  5. [module: ModuleName]: {
  6. [target in Target]?: TargetVersion
  7. }
  8. };
  9. declare const ExportedCompatObject: typeof compat & {
  10. compat: typeof compat,
  11. /** The subset of modules which available in the passed `core-js` version */
  12. getModulesListForTargetVersion: typeof getModulesListForTargetVersion,
  13. /** Full list compatibility data */
  14. data: CompatData,
  15. /** map of modules by `core-js` entry points */
  16. entries: {[entry_point: string]: readonly ModuleName[]},
  17. /** Full list of modules */
  18. modules: readonly ModuleName[]
  19. }
  20. export = ExportedCompatObject