From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/es-module-lexer/types/lexer.d.ts | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/node_modules/es-module-lexer/types/lexer.d.ts b/node_modules/es-module-lexer/types/lexer.d.ts
index 7a31d56..e510ce8 100644
--- a/node_modules/es-module-lexer/types/lexer.d.ts
+++ b/node_modules/es-module-lexer/types/lexer.d.ts
@@ -96,10 +96,27 @@
*/
readonly d: number;
/**
- * If this import has an import assertion, this is the start value.
+ * If this import has an import attribute, this is the start value.
* Otherwise this is `-1`.
*/
readonly a: number;
+ /**
+ * Parsed import attributes as an array of [key, value] tuples.
+ * If this import has no attributes, this is `null`.
+ *
+ * @example
+ * const source = `import foo from 'bar' with { type: "json" }`;
+ * const [imports] = parse(source);
+ * imports[0].at;
+ * // Returns [['type', 'json']]
+ *
+ * @example
+ * const source = `import foo from 'bar' with { type: "json", integrity: "sha384-..." }`;
+ * const [imports] = parse(source);
+ * imports[0].at;
+ * // Returns [['type', 'json'], ['integrity', 'sha384-...']]
+ */
+ readonly at: ReadonlyArray<readonly [string, string]> | null;
}
export interface ExportSpecifier {
/**
--
Gitblit v1.9.3