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

Proposal: Interfaces should allow duplicated members #4423

Closed
ENikS opened this issue Aug 24, 2015 · 1 comment
Closed

Proposal: Interfaces should allow duplicated members #4423

ENikS opened this issue Aug 24, 2015 · 1 comment

Comments

@ENikS
Copy link

ENikS commented Aug 24, 2015

Allow duplicated members in multiple interface declarations, as long as they are identical. Optional compiling warnings are acceptable, to assist developers to remove redundant codes at convenient time.

This should not generate any errors, example:

shim.d.ts

interface Symbol {
    toString(): string;
    valueOf(): Object;
    [Symbol.toStringTag]: string;
}

es6.d.ts

...
interface Symbol {
    /** Returns a string representation of an object. */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): Object;

    [Symbol.toStringTag]: string;
}
...
@mhegazy
Copy link
Contributor

mhegazy commented Aug 25, 2015

I do not think we need a new issue for this. issue #3215 seems like a fine place to keep the discussion going.

@mhegazy mhegazy closed this as completed Aug 25, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants