redwoodjs / redwoodjs-com-archive

Public website for RedwoodJS
https://redwoodjs.com
129 stars 156 forks source link

Docs: TypeScript documentation needs more information! #971

Closed guledali closed 2 years ago

guledali commented 2 years ago

TypeScript Page needs more info for newcomers, for example how to use it in conjunctions with redwood cells

How do I share types between backend to frontend and so forth? How does a typical redwood component with typescript look?

Add sample code for backend and frontend, query and the mutations for the frontend code

@thedavidprice @cannikin @dthyresson @mojombo

jtoar commented 2 years ago

Hey @guledali, that doc is fairly short and should definitely have an example of Cells like you said, but as far as sharing types between sides goes, does this section not cover it for you? https://redwoodjs.com/docs/typescript#sharing-types-between-sides.

guledali commented 2 years ago

Okay I missed it somehow when I originally glanced over the text😁 my bad, but I still think it's needs more a demonstration then maybe some example code snippets to look at.

jtoar commented 2 years ago

We'll be adding a lot more TS docs in https://github.com/redwoodjs/redwood/pull/5491.