Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change comments for type files #16125

Merged
merged 1 commit into from Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/babel-parser/typings/babel-parser.d.ts
Expand Up @@ -224,8 +224,9 @@ interface ParserOptions {
createParenthesizedExpressions?: boolean;

/**
* By default, `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
* The default is false in Babel 7 and true in Babel 8
* Set this to true to parse it as an `ImportExpression` node.
* Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
*/
createImportExpressions?: boolean;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/babel-parser/typings/babel-parser.source.d.ts
Expand Up @@ -137,8 +137,9 @@ export interface ParserOptions {
createParenthesizedExpressions?: boolean;

/**
* By default, `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
* The default is false in Babel 7 and true in Babel 8
* Set this to true to parse it as an `ImportExpression` node.
* Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
*/
createImportExpressions?: boolean;
}
Expand Down