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

Add to Readme: how to use external tsc #54

Open
dpoetzsch opened this issue Feb 26, 2018 · 2 comments
Open

Add to Readme: how to use external tsc #54

dpoetzsch opened this issue Feb 26, 2018 · 2 comments

Comments

@dpoetzsch
Copy link

It took me quite a while now to figure out you use a bundled tsc by default (with version still at 1.6).

After some searching I found a very easy flag to use an external (more recent) tsc, using the following line in a typescript.rb initializes:

TypeScript::Src.use_external_tsc = true

Maybe it would help others to add this option to the readme as it allows for so many up-to-date features? Especially, @types installed via yarn just work then ;-)

@cdimartino
Copy link

This was invaluable. Thank you!

@G-Rath
Copy link

G-Rath commented Jan 9, 2019

@dpoetzsch that doesn't seem to be working for me - I've got the latest typescript, and am doing

const myFunc = <T extends object>(param: T) => ({ ...param });

This compiles fine, but ruby gives error TS2698: Spread types may only be created from object types..

This was a feature added in 3.2. Any advice?

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

No branches or pull requests

3 participants