fix: added `AnyNodes` to the autogenerated file
RENAME
internal/ast/commit/CommitRoot.ts
internal/ast/common/commit/CommitRoot.ts
import {createBuilder} from "@internal/ast/utils";
-import {NodeBaseWithComments, RootBase} from "..";
+import {NodeBaseWithComments, RootBase} from "../../index";
export interface CommitRoot extends NodeBaseWithComments,
RootBase {

MODIFY
internal/ast/index.ts
internal/ast/index.ts
@@ -9,12 +9,13 @@ export * from "./markdown/unions";
export * from "./unions";
export {bindingKeys, nodeNames, visitorKeys} from "./utils";
+export type AnyNodes = AnyNode | Array<AnyNode>;
-// EVERYTHING BELOW IS AUTOGENERATED. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS hash(533210aa4df31dd2121367f5ea8e2ae1a5327c02)
+// EVERYTHING BELOW IS AUTOGENERATED. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS hash(5d20bc54b36105f96b3ca80f5befae6a982ecb45)
-export * from "./commit/CommitRoot";
export * from "./common/comments/CommentBlock";
export * from "./common/comments/CommentLine";
+export * from "./common/commit/CommitRoot";
export * from "./css/core/CSSAtRule";
export * from "./css/core/CSSBlock";
export * from "./css/core/CSSDeclaration";
@@ -258,12 +259,10 @@ export * from "./js/typescript/TSUnionTypeAnnotation";
export * from "./js/typescript/TSUnknownKeywordTypeAnnotation";
export * from "./js/typescript/TSVoidKeywordTypeAnnotation";
-export type AnyNodes = AnyNode | Array<AnyNode>;
-
export type AnyNode =
| n.CommentBlock
- | n.CommitRoot
| n.CommentLine
+ | n.CommitRoot
| n.CSSAtRule
| n.CSSBlock
| n.CSSDeclaration

ADD
internal/formatter/builders/common/commit/CommitRoot.ts
+import {Token} from "@internal/formatter";
+
+export default function CommitRoot(): Token {
+ throw new Error("unimplemented");
+}

MODIFY
internal/formatter/builders/index.ts
internal/formatter/builders/index.ts
@@ -12,12 +12,14 @@ const builders: Map<string, BuilderMethod<any>> = new Map();
export default builders;
-// EVERYTHING BELOW IS AUTOGENERATED. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS hash(cc7701b102fec8a3e4b4078f1b0946efe614e944)
+// EVERYTHING BELOW IS AUTOGENERATED. SEE SCRIPTS FOLDER FOR UPDATE SCRIPTS hash(ba2dc4f3d21814c3545c52f5d032ea86e3230374)
import CommentBlock from "./common/comments/CommentBlock";
builders.set("CommentBlock", CommentBlock);
import CommentLine from "./common/comments/CommentLine";
builders.set("CommentLine", CommentLine);
+import CommitRoot from "./common/commit/CommitRoot";
+builders.set("CommitRoot", CommitRoot);
import CSSAtRule from "./css/core/CSSAtRule";
builders.set("CSSAtRule", CSSAtRule);
import CSSBlock from "./css/core/CSSBlock";

fix: added `AnyNodes` to the autogenerated file (#904)