is there a way to have an async morph?

const formSchema = type({
    appId: 'string',
    nodeId: 'string',
    id: type('string | undefined').pipe((v) => v ?? nanoid()),
    title: type('string.trim').pipe((title) => encryptWithUserKeys(title))
});

encryptWIthUserKeys is an async function
Was this page helpful?