You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not know if the parser is wrong, or the description of `TSTypeAnnotation`:
```
pub struct TSTypeAnnotation<'a> {
/// starts at the `:` token and ends at the end of the type annotation
pub span: Span,
/// The actual type in the annotation
pub type_annotation: TSType<'a>,
}
```
having this code:
`tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/assert-predicate/function-declaration/input.ts`
```
function asserts1 (value: unknown): asserts value is string {}
function asserts2 (value: unknown): asserts value {}
function asserts3 (value: unknown): asserts {}
```
there are 2 `TSTypeAnnotation`s here:
<img width="928" height="912" alt="grafik" src="https://github.com/user-attachments/assets/b0d12446-7e6b-4e59-a426-8eee9d7f2bb0" />
0 commit comments