-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit
| undefined
types for optional properties/parameters
Previously, the property `a?: string` had the type signature `string`. Now, we emit the more correct type `string | undefined`.
- Loading branch information
Showing
5 changed files
with
385 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
// format-options: showSignatures | ||
|
||
export type CompletionItemID = string & { _opaque: typeof CompletionItemID } | ||
declare const CompletionItemID: unique symbol | ||
export interface OptionalProperty { | ||
optional1?: string | ||
optional2?: number | null | ||
optional3?: number | undefined | ||
optional4?: undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.