Skip to content

Commit 1737038

Browse files
authored
Fix for AST type (#40)
1 parent fd159ac commit 1737038

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ast/astro.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export type AstroChild =
2323
| JSXExpression
2424
| JSXText
2525
| AstroHTMLComment
26+
| AstroRawText
2627
export type AstroParentNode = JSXElement | JSXFragment | AstroFragment
2728

2829
/** Node of Astro program root */

src/ast/jsx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { TSESTree as ES } from "@typescript-eslint/types"
22
import type {
33
AstroFragment,
44
AstroHTMLComment,
5+
AstroRawText,
56
AstroShorthandAttribute,
67
AstroTemplateLiteralAttribute,
78
} from "./astro"
@@ -29,6 +30,7 @@ export type JSXChild =
2930
| JSXExpression
3031
| JSXText
3132
| AstroHTMLComment
33+
| AstroRawText
3234
export type JSXParentNode = JSXElement | JSXFragment | AstroFragment
3335
/* --- Tags --- */
3436
export interface JSXElement extends BaseNode {

0 commit comments

Comments
 (0)