Skip to content

Suggestion: Explicit interface implementation #2071

Closed
@Anupheaus

Description

@Anupheaus

I'd like to request that either private members be able to fulfill interface contracts or a new type of member that is designed to fulfill contracts but are not exposed publicly.

At the moment, any interface implemented on a class has to expose all members of that interface publicly, however, I'd like to be able to implement an interface such as IDropTarget that has members such as DraggableEntered(), DraggableLeft(), etc that are not exposed publicly - I mean, I'd like to be able to pass the class instance as an IDropTarget to somewhere and those methods be used, but I'd rather not see them in intellisense when accessing the members of that instance - they just aren't necessary for public exposure.

Hope this makes sense and no-one else has yet suggested this, I did do a search but I didn't find anything like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions