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

Update to new factory interfaces #33

Open
arikmaor opened this issue Jan 12, 2021 · 1 comment
Open

Update to new factory interfaces #33

arikmaor opened this issue Jan 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@arikmaor
Copy link

arikmaor commented Jan 12, 2021

TypeScript has updated their api and most of the generated code is marked deprecated

I currently run it like this:

ts-creator input.ts --no-color | \
        sed 's/ts.create/ts.factory.create/g' | \
        sed 's/createParameter/createParameterDeclaration/g' | \
        sed 's/createCall/createCallExpression/g' | \
        sed 's/createPropertyAccess/createPropertyAccessExpression/g' | \
        sed 's/createReturn/createReturnStatement/g' | \
        sed 's/createElementAccess/createElementAccessExpression/g' | \
        sed 's/createSpread/createSpreadElement/g'

But I'll bet there are many more changes...

@arikmaor arikmaor added the enhancement New feature or request label Jan 12, 2021
@korsmakolnikov
Copy link

up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants