documentationjs / documentationjs/documentation
Support for flowtype Decalartions
- Vorherrschende Sprache
- JavaScript
- Sterne
- 5.8k
- Forks
- 481
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Here is an example of using a flowtype declaration to give a type annotation to a function:
```
/**
* test function returns true
*/
declare var test : () => boolean;
function test(){
return true;
}
```
The documentation produced does not capture the type annotation:

While if you use the syntax:
```
/**
* test function returns true
*/
function test() : boolean {
return true;
}
```
It produces the documentation which does capture the type annotation:

Unclear to me how realistic it is to support flowtype's various syntaxes for type annotation without using flow directly to parse the file however.
Let me know if this fits into the scope for this project/repo.
flowtype declaration doc:
https://flowtype.org/docs/declarations.html
```
$ documentation --version
4.0.0-beta12
```
Beitragsleitfaden
Rechercherichtung
Reproduziere das Problem mit den beiden JavaScript-Beispielen und der Dokumentationsversion 4.0.0-beta12 und lies anschließend die Deklarationsdokumentation von Flow, um den vorgesehenen Syntaxumfang zu ermitteln. Vergleiche die generierte Dokumentation für beide Beispiele und definiere „abgeschlossen“ als das Erfassen der Typannotation aus der Deklarationsform, ohne die bestehende Funktionssyntax zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- documentation
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 28/100