Skip to content

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