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

Ability to extend interfaces optionally #10325

Closed
normalser opened this issue Aug 14, 2016 · 2 comments
Closed

Ability to extend interfaces optionally #10325

normalser opened this issue Aug 14, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@normalser
Copy link

Code

Would it be possible to have such ability in TS ?

interface A {
    a: string
}

interface B {
    b: string
}

// notice: B?
interface C extends A, B? {
    c: string
}

// where C would be of type: {a:string, b?:string, c:string}
@kitsonk
Copy link
Contributor

kitsonk commented Aug 14, 2016

Related to #563 (partials) and dupe of #371.

@normalser
Copy link
Author

wow, old one, thanks :)

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Aug 15, 2016
@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
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants