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
circular scope, scope compilation bug, Apply is not a function.
🧩 Context
ArkType version: 2.0.0-rc.21
TypeScript version (5.1+): Version 5.7.0-dev.20241002
Other context you think may be relevant (JS flavor, OS, etc.): N/A
🧑💻 Repro
Minimum repro:
import{scope,type}from"arktype"const$=scope({Foo: {"oneOf?": "Bar[]"// NB: don't get the error if this is not an array},Bar: "Foo"}).export()constbaz=$.Bar.pipe((_: object): type.Any|undefined=>{console.log("this never gets logged since pipe isn't entered")returntype("string")})constr=baz({oneOf: [{}]})// throws "TypeError: this.Foo1Apply is not a function"console.log(r)
The text was updated successfully, but these errors were encountered:
Report a bug
🔎 Search Terms
circular scope, scope compilation bug, Apply is not a function.
🧩 Context
🧑💻 Repro
Minimum repro:
The text was updated successfully, but these errors were encountered: