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

Branded authority types limit type checking on message types in spawn functions. #4

Open
le0-0 opened this issue Feb 10, 2025 · 1 comment

Comments

@le0-0
Copy link
Contributor

le0-0 commented Feb 10, 2025

The way actor types are implemented now means that no type checking is being performed on the types of messages that the actors from a spawn function actually processes. In cases where the spawn function directly calls the spawn function from @nact/core, the message type is explicitly mentioned in the signature of the main actor function, but in more advanced actor types – like those derived from DerivedAuthority – this is not the case.

@le0-0
Copy link
Contributor Author

le0-0 commented Feb 10, 2025

A solution is to remove branded type characteristics from actor types, leaving only the message handling characteristics.

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

No branches or pull requests

1 participant