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
Other context you think may be relevant (JS flavor, OS, etc.):
π§βπ» Repro
import{type}from"../type/index.ts"const$Item=type({type: "string","additionalProperties?": "this","description?": "string","enum?": "string[]","example?": "number|string|object|boolean","items?": "this","required?": "string[]"})constDescribedEnum=type({branches: "string",// type({ unit: "string" }).array().atLeastLength(1),meta: "string"}).pipe((v,ctx)=>{console.log(ctx.currentErrorCount,Object.keys(ctx.errors.byPath))console.log("DescribedEnum is expected to be a valid type, but is: ",v)return{// ...}},$Item)console.clear()console.log(JSON.stringify(DescribedEnum.json))constv=DescribedEnum({domain: "number",meta: "A whole number;example:0"})console.log(v+"")
The text was updated successfully, but these errors were encountered:
Report a bug
π Search Terms
𧩠Context
π§βπ» Repro
The text was updated successfully, but these errors were encountered: