-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Pick PR #53207 (Fixed symbol declarations for gener...) into releas…
…e-5.0 (#53271) Co-authored-by: Mateusz Burzyński <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
6 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
25 changes: 25 additions & 0 deletions
25
tests/cases/fourslash/goToDefinition_filteringGenericMappedType.ts
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
///<reference path="fourslash.ts"/> | ||
|
||
//// const obj = { | ||
//// get /*def*/id() { | ||
//// return 1; | ||
//// }, | ||
//// name: "test", | ||
//// }; | ||
//// | ||
//// type Omit2<T, DroppedKeys extends PropertyKey> = { | ||
//// [K in keyof T as Exclude<K, DroppedKeys>]: T[K]; | ||
//// }; | ||
//// | ||
//// declare function omit2<O, Mask extends { [K in keyof O]?: true }>( | ||
//// obj: O, | ||
//// mask: Mask | ||
//// ): Omit2<O, keyof Mask>; | ||
//// | ||
//// const obj2 = omit2(obj, { | ||
//// name: true, | ||
//// }); | ||
//// | ||
//// obj2.[|/*ref*/id|]; | ||
|
||
verify.goToDefinition("ref", "def"); |