jamwt
jamwt17mo ago

v.id not autocompleting

From @Web Dev Cody ... one thing I noticed is when I do v.id(" I don't get any typescript auto completion args: { id: v.id(" no completion at that point, at least from what I'm seeing I think also when I did Id<" I didn't get auto complete
2 Replies
sshader
sshader17mo ago
The lack of auto completion for v.id is expected behavior -- since v.id is used in schema definitions, and schema definitions are what determines the list of tables to allow in v.id, it's tricky to get auto completion here (but noted that the lack of auto complete isn't great). I would expect Id<" to auto complete though! If it's not, I'd make sure codegen is up to date, Id is being imported from _generated, and the schema is not using strictTableNameTypes: false
Web Dev Cody
Web Dev Cody17mo ago
oh, yup Id<" is working now, I think I just needed to restart my ts server thank you!

Did you find this page helpful?