Skip to content

Commit

Permalink
fix: support upcoming attrTags ast change
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Oct 8, 2024
1 parent a9a0a0b commit 2a2d49c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ export const printers: Record<string, Printer<types.Node>> = {
if (opts.markoSyntax === "html") doc.push(">");
} else if (node.body.body.length) {
const lastIndex = node.body.body.length - 1;
const bodyDocs = [] as Doc[];
const bodyDocs = Array.isArray(node.attributeTags)

Check failure on line 405 in src/index.ts

View workflow job for this annotation

GitHub Actions / build (18)

Property 'attributeTags' does not exist on type 'MarkoTag'. Did you mean 'attributes'?

Check failure on line 405 in src/index.ts

View workflow job for this annotation

GitHub Actions / build (20)

Property 'attributeTags' does not exist on type 'MarkoTag'. Did you mean 'attributes'?
? tagPath.map(print, "attributeTags")

Check failure on line 406 in src/index.ts

View workflow job for this annotation

GitHub Actions / build (18)

Argument of type '"attributeTags"' is not assignable to parameter of type 'ArrayProperties<MarkoTag>'.

Check failure on line 406 in src/index.ts

View workflow job for this annotation

GitHub Actions / build (20)

Argument of type '"attributeTags"' is not assignable to parameter of type 'ArrayProperties<MarkoTag>'.
: [];
let textOnly = true;

let textDocs = [] as Doc[];
Expand Down

0 comments on commit 2a2d49c

Please sign in to comment.