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

Find a better strategy for external/internal implementation type compat #1051

Open
ssalbdivad opened this issue Jul 14, 2024 · 0 comments
Open

Comments

@ssalbdivad
Copy link
Member

Currently in arktype and @arktype/schema, there are lots of RawX and InternalX style types that represent inner objects. There is also a .internal prop on the external object that allows access to those.

However, the internal and external versions are not compatible in either direction in terms of types despite that they represent the same value at runtime. Beyond some cases where I can use .internal, it just results in tons of casting.

I'd like to find a more cohesive strategy to deal with this.

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

No branches or pull requests

1 participant