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

should we make params optional in the decorators? What if we allowed just @update() or even just @update? #2364

Closed
Tracked by #2396
lastmjs opened this issue Dec 19, 2024 · 0 comments · Fixed by #2400
Assignees
Milestone

Comments

@lastmjs
Copy link
Member

lastmjs commented Dec 19, 2024

If there are no params or return type for a canister method, allow using just the decorator without even specifying an empty array for params or even calling the decorator if possible i.e. @query, @update etc

@lastmjs lastmjs mentioned this issue Dec 19, 2024
5 tasks
@lastmjs lastmjs added this to the 0.25.0 milestone Dec 19, 2024
@bdemann bdemann assigned lastmjs and unassigned bdemann Dec 21, 2024
This was referenced Dec 30, 2024
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 a pull request may close this issue.

3 participants
@lastmjs @bdemann and others