Use 'Omit' instead of 'Pick<Exclude<...>>' for object rest - #31134
Use 'Omit' instead of 'Pick<Exclude<...>>' for object rest#31134Ryan Cavanaugh (RyanCavanaugh) merged 5 commits into
Conversation
|
Nathan Shively-Sanders (@sandersn) , |
|
Seems like the change is probably good. Now run |
|
Daniel Rosenwasser (@DanielRosenwasser) , |
|
Actually, I don't know if the change is appropriate because it will error if |
|
Mm, team seems to think that maybe we shouldn't even have the fallback. |
|
Daniel Rosenwasser (@DanielRosenwasser) , |
|
Ok, I can modify the code as follows. if (! omitTypeAlias) {
return errorType;
}
return getTypeAliasInstantiation(omitTypeAlias, [source, omitKeyType]);and get rid of the code from line |
|
Daniel Rosenwasser (@DanielRosenwasser) , |
|
Daniel Rosenwasser (@DanielRosenwasser) , |
|
TypeScript Bot (@typescript-bot) test this |
|
Heya Ryan Cavanaugh (@RyanCavanaugh), I've started to run the extended test suite on this PR at cf15c79. You can monitor the build here. It should now contribute to this PR's status checks. |
Trying to deliver the Modification mentioned in #30948
Fixes #30948