You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently in
arktype
and@arktype/schema
, there are lots ofRawX
andInternalX
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.
The text was updated successfully, but these errors were encountered: