noah
Aarktype
•Created by noah on 4/6/2025 in #questions
Generic wrapper for drizzle-arktype functions
When using the
drizzle-arktype
functions I found myself writing the following two lines over and over again when validating my API requests:
So I wanted to abstract this away into a function that currently looks like this:
The issue I am facing now is that I get a Property 'omit' does not exist on type ...
error.
Initially I just used AnyPgTable
as the generic type so I thought that adding the column definitions might help but I was seemingly wrong.
I don't know if this is the right place to ask but I would greatly appreciate any help :)8 replies