facebookarchive/prepack

Output typed code.

Open

#1085 aperta il 13 ott 2017

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (520 fork)batch import
design neededenhancementhelp wantedlevel 4 (hard)

Metriche repository

Star
 (14.268 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Feature suggestion

Allow outputting code that has at least all of the type information that prepack understands. Currently, types are assumed and come in from model declarations, including automatically with babel-plugin-flow-prepack, but the output code is completely untyped. Printing the types would be good for debugging, but most importantly it allows further tools to benefit from the type information, for example - closure compiler.

Guida contributor