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 how to use addons with Typescript #1444

Merged
merged 4 commits into from
May 11, 2018
Merged

Update how to use addons with Typescript #1444

merged 4 commits into from
May 11, 2018

Conversation

pengx17
Copy link
Contributor

@pengx17 pengx17 commented May 10, 2018

No description provided.

README.md Outdated
@@ -57,7 +57,18 @@ The proposed way to load xterm.js is via the ES6 module syntax.
import { Terminal } from 'xterm';
```

*Note: There are currently no typings for addons so you will need to upcast if using TypeScript, eg. `(<any>xterm).fit()`.*
*Note: There are currently no typings for addons if they are accessed via extending Terminal prototype, so you will need to upcast if using TypeScript, eg. `(<any>xterm).fit()`.*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think thus would be better called out briefly in the Addons section below. applyAddon should be recommended as an alternative imo, not the main way.

@pengx17
Copy link
Contributor Author

pengx17 commented May 11, 2018

@Tyriar readme is updated

@Tyriar Tyriar added this to the 3.4.0 milestone May 11, 2018
@Tyriar
Copy link
Member

Tyriar commented May 11, 2018

Thanks 😄

@Tyriar Tyriar merged commit b9baaca into xtermjs:master May 11, 2018
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

Successfully merging this pull request may close these issues.

2 participants