Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

Conversation

BurtHarris
Copy link
Contributor

See DefinitelyTyped#10977

Since Node's EventEmitter is a class with implementation, the previous version of this is fragile when the base class adds new members, an implements definition needs changes. By using extends rather than implments, inheritance of new methods is automatic.

See DefinitelyTyped#10977

Since Node's EventEmitter is a class with implementation, the previous version of this is fragile when the base class adds new members, an implements definition needs changes.    By using `extends` rather than `implments`, inheritance of new methods is automatic.
@unional
Copy link
Collaborator

unional commented Sep 8, 2016

I think this is good. cc/@blakeembrey to confirm.

@blakeembrey
Copy link
Contributor

LGTM @unional

@unional unional merged commit 33b7814 into types:master Sep 9, 2016
@styfle
Copy link

styfle commented Oct 22, 2016

This appears to be broken. See my comment on DefinitelyTyped #10977. Thanks!

@blakeembrey
Copy link
Contributor

@unional What if it does import { EventEmitter } from 'events' instead? That is how it should probably be done.

@unional unional mentioned this pull request Oct 23, 2016
@unional
Copy link
Collaborator

unional commented Oct 23, 2016

Seems like it. PR filed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants