Typed node client
Do you think it'd be possible to create a typed version of the node js client?
5 Replies
Hey @Chad Maycumber , can you elaborate on what you mean by typed version of the node js client? You can use TypeScript to write Node.js scripts and use ConvexHttpClient which is fully typed and supports TypeScript as does all of our JS API.
Ahh for some reason I thought leveraging the ConvexHTTPClient wasn't typed.
Maybe I'm doing something wrong
You'll want to pass your generated API into the constructor as a type parameter.
Oh amazing thanks appreciate that
which is imported from
../convex/_generated/api