UNPKG

901 BMarkdownView Raw
1# SCRATCH (Mosaic)
2
3Realised yesterday that TS can try to work with JS but also
4has great support for JSDoc.
5
6The main reasoning for using TS i hear is generally
7intellisense (or equiv), however types without docs aren't
8really that useful.
9
10If TS can understand JS Doc comments, then potentially you
11can have a workflow where...
12
13- typings are taken from the doc comments and `tsc` is used
14 to generate a declaration file.
15- the doc comments are used to generate....documentation!
16
17## compatibility
18
19There are things that you can write in doc comments that TSC
20will understand but not JSDoc.
21
22This is also true in the other direction.
23
24There is a project tsdoc that is supposed to work with
25anything supported by TSC
26
27## goals
28
29The goal is to have a single script that runs both tsc to
30generate a declaration file, and also generate beautiful
31docs, either with JSdoc, or TSdoc, I don't really care.