Skip to content

Commit e89f203

Browse files
authored
Change comments for type files (#16125)
fix
1 parent 01a0767 commit e89f203

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/babel-parser/typings/babel-parser.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@ interface ParserOptions {
224224
createParenthesizedExpressions?: boolean;
225225

226226
/**
227-
* By default, `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
227+
* The default is false in Babel 7 and true in Babel 8
228228
* Set this to true to parse it as an `ImportExpression` node.
229+
* Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
229230
*/
230231
createImportExpressions?: boolean;
231232
}

packages/babel-parser/typings/babel-parser.source.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ export interface ParserOptions {
137137
createParenthesizedExpressions?: boolean;
138138

139139
/**
140-
* By default, `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
140+
* The default is false in Babel 7 and true in Babel 8
141141
* Set this to true to parse it as an `ImportExpression` node.
142+
* Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
142143
*/
143144
createImportExpressions?: boolean;
144145
}

0 commit comments

Comments
 (0)