arktype icon indicating copy to clipboard operation
arktype copied to clipboard

Morph keys

Open ssalbdivad opened this issue 1 year ago • 0 comments

Given a definition like:

const $ = scope({
  a: ["'a'", "=>", () => "b"],
  o: {
    "[a]": "string",
  },
});

We could parse o as an object of with morph type (In: {a: string}) => Out<{b: string}>.

Currently, this fails semantic validation as the morph types are not extracted.

ssalbdivad avatar Jul 05 '23 19:07 ssalbdivad