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, an index signature including a literal key like "a" is an error due to some limitations of how the parser is implemented. There is a normalizeIndexKey function, but it is not used when parsing a schema.
If it were integrated somehow, that logic could be removed from the primary arktype package in parseObjectLiteral and it would generally be better to reduce a type like this than throw.
The text was updated successfully, but these errors were encountered:
Currently, an index signature including a literal key like "a" is an error due to some limitations of how the parser is implemented. There is a
normalizeIndexKey
function, but it is not used when parsing a schema.If it were integrated somehow, that logic could be removed from the primary
arktype
package inparseObjectLiteral
and it would generally be better to reduce a type like this than throw.The text was updated successfully, but these errors were encountered: