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

Unfinished Types #13439

Closed
mavericken opened this issue Jan 12, 2017 · 2 comments
Closed

Unfinished Types #13439

mavericken opened this issue Jan 12, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@mavericken
Copy link

mavericken commented Jan 12, 2017

I think there should be a way to describe a type that is finished for the properties that are defined, but unfinished for properties that are not defined.

Example Use Case:

unfinished interface FancyAPI {
  version: number,
  endpointURL: string
}

var test:FancyAPI = getFancyAPI();
test.version = "test" // should have an error here
test.endpointName = "localhost/fancyAPI" // should have no error here
test.someExtraInformation = "extra info" // should have no error here, should be type any

Really why I would want this is so I can incrementally build a type definition for code that previously had no type information.

@RyanCavanaugh
Copy link
Member

What you're asking for is effectively #12596

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jan 12, 2017
@mavericken
Copy link
Author

Ah, sorry for the duplicate-- it is tricky to find these things with such a large pile of issues. I like the feature as proposed in #12596 more.

@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

2 participants