summaryrefslogtreecommitdiff
path: root/node_modules/core-js-compat/index.d.ts
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-14 15:31:11 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-14 15:31:11 +0800
commitaa773172311dcada759dfbaac485f4bc6e00bc21 (patch)
treeca6d9a5eff3ab8f689f9acb4f0df791d9486813d /node_modules/core-js-compat/index.d.ts
parentc5a5384e846f242e901e859fe600d695d8990a9a (diff)
added babel
Diffstat (limited to 'node_modules/core-js-compat/index.d.ts')
-rw-r--r--node_modules/core-js-compat/index.d.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/node_modules/core-js-compat/index.d.ts b/node_modules/core-js-compat/index.d.ts
new file mode 100644
index 00000000..b350d6a3
--- /dev/null
+++ b/node_modules/core-js-compat/index.d.ts
@@ -0,0 +1,27 @@
+import type compat from './compat'
+import type getModulesListForTargetVersion from './get-modules-list-for-target-version';
+import type { ModuleName, Target, TargetVersion } from './shared'
+
+type CompatData = {
+ [module: ModuleName]: {
+ [target in Target]?: TargetVersion
+ }
+};
+
+declare const ExportedCompatObject: typeof compat & {
+ compat: typeof compat,
+
+ /** The subset of modules which available in the passed `core-js` version */
+ getModulesListForTargetVersion: typeof getModulesListForTargetVersion,
+
+ /** Full list compatibility data */
+ data: CompatData,
+
+ /** map of modules by `core-js` entry points */
+ entries: {[entry_point: string]: readonly ModuleName[]},
+
+ /** Full list of modules */
+ modules: readonly ModuleName[]
+}
+
+export = ExportedCompatObject