Is there a way to have ts types and v.whatever() types synced?
hey, its getting rather tedious to update my types on so many places. Does anyone know of a more elegant approach?
1. how can I keep both typescript and schema updated at the same time?
eg
type todo{
name: string,
newlyAddedThing: string
}
//wish it would also change in schema
defineTable({
todo:{
name: v.string(),
//here should automticaly be newlyAddedThing
})
type todo{
name: string,
newlyAddedThing: string
}
//wish it would also change in schema
defineTable({
todo:{
name: v.string(),
//here should automticaly be newlyAddedThing
})
}
2. if i have 3 different mutations that take a todo as args... how do I prevent having to change the args todo definition on all 3 manualy?