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
Originally posted by agladysh November 12, 2024
A somewhat silly reduced example:
import{ArkErrors,scope}from'arktype';const$=scope({literal: '"foo"',record: {'[string]': 'value'},value: 'literal|literal[]|record',}).export();constresult=$.value({});if(resultinstanceofArkErrors){// Error: must be an array (was object)thrownewError(result.summary);}console.log('passed');
All three types in value seem to be necessary to reproduce the issue.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Discussed in #1197
Originally posted by agladysh November 12, 2024
A somewhat silly reduced example:
All three types in
value
seem to be necessary to reproduce the issue.What am I doing wrong?
The text was updated successfully, but these errors were encountered: