Skip to content

Commit

Permalink
[babel-types] Add extra property to BaseNode type (#12136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrhee committed Oct 9, 2020
1 parent f6bd749 commit ebec7c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-types/scripts/generators/flow.js
Expand Up @@ -43,6 +43,7 @@ declare class ${NODE_PREFIX} {
start: ?number;
end: ?number;
loc: ?${NODE_PREFIX}SourceLocation;
extra?: { [string]: mixed };
}\n\n`;

//
Expand Down
1 change: 1 addition & 0 deletions packages/babel-types/scripts/generators/typescript.js
Expand Up @@ -45,6 +45,7 @@ interface BaseNode {
end: number | null;
loc: SourceLocation | null;
type: Node["type"];
extra?: Record<string, unknown>;
}
export type Node = ${t.TYPES.sort().join(" | ")};\n\n`;
Expand Down

0 comments on commit ebec7c8

Please sign in to comment.