Skip to content

fix: correct type assertion for directive in motion directive tests - #2

Open
ngakui wants to merge 1 commit into
ScriptType:mainfrom
ngakui:core/fix-type-in-directive
Open

fix: correct type assertion for directive in motion directive tests#2
ngakui wants to merge 1 commit into
ScriptType:mainfrom
ngakui:core/fix-type-in-directive

Conversation

@ngakui

@ngakui ngakui commented Aug 21, 2026

Copy link
Copy Markdown

I've fixed the error by using the intentional two-step cast through unknown at the failing site. TypeScript blocks direct casting from a class type with private members to a structural test type.

@ngakui

ngakui commented Aug 26, 2026

Copy link
Copy Markdown
Author

Hello @ScriptType please can you take a look on this. I wanted to create a similar lib, but given that you've already built something very interesting, I'd like to contribute as I can to this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant