From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:02:38 +0800
Subject: [PATCH] TODO#139884 Banner 1 文案調整

---
 PAMapp/node_modules/@babel/types/scripts/generators/ast-types.js |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/PAMapp/node_modules/@babel/types/scripts/generators/ast-types.js b/PAMapp/node_modules/@babel/types/scripts/generators/ast-types.js
index cd31918..49b67bb 100644
--- a/PAMapp/node_modules/@babel/types/scripts/generators/ast-types.js
+++ b/PAMapp/node_modules/@babel/types/scripts/generators/ast-types.js
@@ -36,20 +36,22 @@
 }
 
 interface BaseNode {
-  leadingComments: ReadonlyArray<Comment> | null;
-  innerComments: ReadonlyArray<Comment> | null;
-  trailingComments: ReadonlyArray<Comment> | null;
-  start: number | null;
-  end: number | null;
-  loc: SourceLocation | null;
   type: Node["type"];
+  leadingComments?: ReadonlyArray<Comment> | null;
+  innerComments?: ReadonlyArray<Comment> | null;
+  trailingComments?: ReadonlyArray<Comment> | null;
+  start?: number | null;
+  end?: number | null;
+  loc?: SourceLocation | null;
   range?: [number, number];
   extra?: Record<string, unknown>;
 }
 
 export type CommentTypeShorthand = "leading" | "inner" | "trailing";
 
-export type Node = ${t.TYPES.sort().join(" | ")};\n\n`;
+export type Node = ${t.TYPES.filter(k => !t.FLIPPED_ALIAS_KEYS[k])
+    .sort()
+    .join(" | ")};\n\n`;
 
   const deprecatedAlias = {};
   for (const type in t.DEPRECATED_KEYS) {
@@ -115,6 +117,9 @@
     code += `  ${type}: ${type};\n`;
   }
   code += "}\n\n";
+  code += `export type DeprecatedAliases = ${Object.keys(
+    t.DEPRECATED_KEYS
+  ).join(" | ")}\n\n`;
 
   return code;
 }

--
Gitblit v1.8.0