You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
Really why I would want this is so I can incrementally build a type definition for code that previously had no type information.
The text was updated successfully, but these errors were encountered: