Typing type Table based on my schema

I'm trying to abstract deleting rows for 4 of my tables.
e.g. deleteRow(schema.myTable, '123myid123')
how could I type the deleteRow function so it gives me type checks against my schema?

Thanks!
Was this page helpful?