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

Provide some API to access the currently-defined types #154

Open
gwhitney opened this issue Jul 22, 2022 · 1 comment
Open

Provide some API to access the currently-defined types #154

gwhitney opened this issue Jul 22, 2022 · 1 comment

Comments

@gwhitney
Copy link
Collaborator

Right now there is no "publicly" exposed function for inquiring as to the types available in a typed-function instance. (There is just ._findType exposed "for unit testing only".) There should be some standardized public API for asking about the types present, perhaps at least read-only access to the typeList, or some other API if it would be more sensible. It might also be nice to be able to ask a typed-function if an entity is in some type, in its opinion.

@josdejong
Copy link
Owner

Yes, good point. For example methods typed.getTypes() and typed.getConversions(). These should maybe return a clone of the internal types and conversions so you can't mess with them.

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

No branches or pull requests

2 participants