1415040263
* Inject source text into printAstToDoc function. * Add getNodeSource helper function. * Fix Flow drawback with missing DeclareTypeAlias by checking the node source. * Add new test. * Fix getNodeSource helper function. * Revert text injection. * Refactor DeclareTypeAlias printing. * Drop expensive getNodeSource helper function 🗑️. * Refactor declareTypeAlias case in printer. * Update tests. * Implement the same logic for DeclareInterface. * Update the tests. * Fix missing semicolons and typo. * Put Flow specific node detection code into own helper function 🚀. * Refactor isFlowNodeStartingWithDeclare helper function. * Simplify isFlowNodeStartingWithDeclare helper function. * Rename test spec. * Update tests. |
||
---|---|---|
.. | ||
__snapshots__ | ||
declare_module_type_alias.js | ||
declare_type_exports.js | ||
jsfmt.spec.js |