Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare types for decorators #61

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Conversation

mattjohnsonpint
Copy link
Contributor

I found through experimentation that we can declare TypeScript types for decorators in a way that doesn't interfere with the AssemblyScript compiler, but still is picked up by VS Code. This prevents red underlining our decorators, without requiring use of // @ts-ignore statements. It also allows us to add jsdocs for the decorators.

@mattjohnsonpint mattjohnsonpint changed the title Declare types decorators Declare types for decorators Jan 17, 2024
@JairusSW
Copy link
Owner

Looks good, thank you!

@JairusSW JairusSW merged commit c44887e into JairusSW:master Jan 17, 2024
1 check passed
@mattjohnsonpint mattjohnsonpint deleted the decorators branch January 18, 2024 04:49
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.

2 participants