Partial Application of the validator

Is there any way to partially apply the validator
for eg:
const test = type({
  name: "string",
  info: { email: "string.email & string.lower", age: "number" }
});

Now I want to partially use test.info.email or apply the validator based on the partial object I pass.
Usecase: I will use an arktype to represent the schema in my db. Now I want to allow to partially update the db. but still apply the transformation and validation specified in the schema.
Was this page helpful?