facebookarchive/prepack

Output typed code.

Open

#1,085 opened on Oct 13, 2017

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (520 forks)batch import
design neededenhancementhelp wantedlevel 4 (hard)

Repository metrics

Stars
 (14,268 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide