mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 14:34:35 -06:00
Implementation of declaration emit
This implementation uses the the parser and printer from the TypeScript code base but replaces the binder and emit resolver with rewritten versions that do not depend on the type checker.
The declaration transform itself is mostly the same as the version in TypeScript (with some code erased and different imports)
Package scripts
build/watch- Build the coderun-tests-parallel- Emits declarations using tsc and the stand alone emitter for the tests in the TypeScript code base in parallel. Outputs totsc-testsrun-test- Emits declarations using tsc and the stand alone emitter for the tests in the TypeScript code base on a single thread, or filtered if you specify a test name. Outputs totsc-teststransform-tests-parallel- Transforms the TypeScript tests t add missing type annotations and write them totsc-tests\updated-tests. Runs in paralleltransform-test- Transforms the TypeScript tests t add missing type annotations and write them totsc-tests\updated-tests. Runs on a single thread. Accepts a test name or regex filterrun-transformed-tests-parallel- Same asrun-tests-parallelbut runs on the transformed tests intsc-tests\updated-testsrun-transformed-test- Same asrun-testbut runs on the transformed tests intsc-tests\updated-tests
Note: Tests currently just output the declarations, there is no console error message. Use an external diff tool to see differences.