Async data
nuxt-parse
also works with async data, e.g., when fetching from another API or DB:
import { z, parseDataAs } from "@sidebase/nuxt-parse"const fakeDatabaseQuery = async () => { id: 1 }const parsedData = await parseDataAs(fakeDatabaseQuery, z.object({ id: z.number() )}))console.log(parsedData)// -> output: `1`