Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] .d.ts generator #889

Closed
wants to merge 558 commits into from
Closed

[WIP] .d.ts generator #889

wants to merge 558 commits into from

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Jul 23, 2020

Steps for contribution

  1. Clone dts branch of kdy1/swc
git clone [email protected]:kdy1/swc.git -b dts
  1. Change directory
# From the swc directory
cd typescript/dts
  1. Run cargo test twice

First run generates correct .d.ts files using tsc, and second run would actually invoke swc's type engine.
The first run will be very slow as it invokes tsc lots of time.

  1. Modify typescript/checker

Validate valiidates the node T, while returning some extracted information.
Also, Validate may modify ast if it's required.

(Some ast nodes are modifiable only in validator. After inferencing type, it's not possible to modify as required)

  1. Send PR to kdy1/swc with target branch 'dts'

@CLAassistant
Copy link

CLAassistant commented Sep 27, 2020

CLA assistant check
All committers have signed the CLA.

@kdy1 kdy1 closed this Sep 30, 2020
@kdy1 kdy1 deleted the dts branch September 30, 2020 14:08
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants