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

Convert CompositionHelper to TypeScript #371

Merged
merged 6 commits into from
Nov 28, 2016

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Nov 22, 2016

Part of #335


import { ITerminal } from './Interfaces';

interface IPosition {
Copy link
Contributor

@parisk parisk Nov 28, 2016

Choose a reason for hiding this comment

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

Non-blocking question: Why do we use an interface instead of a class here?

Copy link
Member Author

@Tyriar Tyriar Nov 28, 2016

Choose a reason for hiding this comment

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

The interface is more light-weight than a class and since the interface gives us all we need (type checking), that's sufficient. I would make it a class if we had any operations that worked on start or end.

Copy link
Contributor

@parisk parisk left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Tyriar Tyriar merged commit c6eb7f1 into xtermjs:master Nov 28, 2016
@Tyriar Tyriar deleted the 335_CompositionHelper_ts branch November 28, 2016 16:21
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