Skip to content

chore(deps): update textlint to 15.8.0 - #21

Open
3w36zj6 wants to merge 2 commits into
mainfrom
feature/update-textlint-to-15.8.0
Open

chore(deps): update textlint to 15.8.0#21
3w36zj6 wants to merge 2 commits into
mainfrom
feature/update-textlint-to-15.8.0

Conversation

@3w36zj6

@3w36zj6 3w36zj6 commented Aug 11, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment thread test/parsing.test.ts
const AST = parse(input);
test(AST);

test(AST as unknown as Record<string, unknown>);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azu

Shouldn't test() from @textlint/ast-tester accept unknown?

@textlint/markdown-to-ast currently works around the same issue here:

https://github.com/textlint/textlint/blob/da70632527c5c56affc5aa7670d9a50b93819168/packages/%40textlint/markdown-to-ast/test/parsing.test.ts

Although isTxtAST() accepts unknown, it catches and suppresses assertion errors. I would therefore prefer to use test() directly, without having to add a type guard or another workaround.

https://github.com/textlint/textlint/blob/da70632527c5c56affc5aa7670d9a50b93819168/packages/%40textlint/ast-tester/src/index.ts

@3w36zj6
3w36zj6 requested a review from azu August 11, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant