diff --git a/crates/oxc_ast/src/ast/ts.rs b/crates/oxc_ast/src/ast/ts.rs index b66a370e03d31..f7c27a2e197ed 100644 --- a/crates/oxc_ast/src/ast/ts.rs +++ b/crates/oxc_ast/src/ast/ts.rs @@ -1336,7 +1336,16 @@ pub enum TSTypeQueryExprName<'a> { } } -/// `type foo = import('foo')` +/// `import('foo')` in `type Foo = import('foo');` +/// +/// ```ts +/// // ______________ options +/// type Foo = import('foo', { assert: {} }); +/// // ^^^^^ argument ^^^ type_arguments +/// +/// type Foo = import('foo').bar; +/// // ^^^ qualifier +/// ``` #[ast(visit)] #[derive(Debug)] #[generate_derive(CloneIn, Dummy, TakeIn, GetSpan, GetSpanMut, ContentEq, ESTree)]