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
import{generic,Hkt}from"arktype";constEnum=generic(["O","object"])(({ O })=>{console.log(O.props);// TypeError: this.applyStructuralOperation[0] is not iterable},classextendsHkt{declarebody: this[0];});
This is based on props only existing on nodes with an actual structure, but we need to find a better way to work around that for object.
The text was updated successfully, but these errors were encountered:
Currently this crashes:
This is based on
props
only existing on nodes with an actual structure, but we need to find a better way to work around that forobject
.The text was updated successfully, but these errors were encountered: