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

feat: Make types accessible by name in S #717

Open
jceb opened this issue Aug 24, 2021 · 1 comment
Open

feat: Make types accessible by name in S #717

jceb opened this issue Aug 24, 2021 · 1 comment

Comments

@jceb
Copy link

jceb commented Aug 24, 2021

Currently, S.env provides the environment with all defined types, however there's no way of directly accessing the types by name. Functions like S.is need a reference to a type to work properly so the proposal is to make types accessible by name from S, e.g. via S.types.TYPE or via refactoring S.env into a map so S.env.TYPE can be used.

@davidchambers
Copy link
Member

Turning S.env into an object or a map is a great idea!

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

2 participants