Add TypeScript documentation, fixes #503 #703
Merged
+2,382
−451
Conversation
|
I haven't finished reading through yet, but what I've read so far looks awesome! Not sure what happened to travis, but ignore the build failure. |
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
|
Suggestions committed |
|
Sweet, let's do this! And again thank you so much for the fantastic PR |
d43d92a
into
preactjs:master
5 of 6 checks passed
5 of 6 checks passed
|
@marvinhagemeister |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Hi all👋
This is the a draft addressing #503
The content is mostly adapted from my TypeScript + React guide I published two years ago, without the fluff and rephrased to suit proper documentation. It can be seen as an accompanying guide to the regular documentation, focusing on how to properly type so the compiler doesn't complain (which can be ... a lot!).
Things done:
Things to do:
Note: For proper syntax highlighting I had to add
tsxandtypescriptto Prism.js. I used the link in the prism.js comment to get the original configuration, and added two more languages (the new link is again in prism.js)