| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the Definitely Typed test suite on this PR at 53e76b3. You can monitor the build here. It should now contribute to this PR's status checks. |
Sorry, something went wrong.
|
The only breakages on DefinitelyTyped seem to be
And those all really come from amap-js-api unnecessarily plopping Omit in the global scope. |
Sorry, something went wrong.
|
A fix is now out to DefinitelyTyped's amap-js-api package. I used BigTSQuery to partially assess the breakage with the following query SourceFile:not([externalModuleIndicator]) > TypeAliasDeclaration > Identifier[name=Omit] BigTSQuery isn't fully up to date (Uri Shaked (@urish) out of curiosity, how recent is the dataset?), but we saw three distinct results:
Also: |
Sorry, something went wrong.
|
We discussed this at #30738 and believe that the breakage can be easily communicated and is more limited than we initially anticipated. |
Sorry, something went wrong.
|
Keys are not limited to keyof T. Is that on purpose? |
Sorry, something went wrong.
|
Aleksey Levenstein (@levenleven)
🤔 |
Sorry, something went wrong.
|
Exclude doesn't constrain its second type parameter on the first, so we felt like it would be strange to do that with Omit. |
Sorry, something went wrong.
|
Note, if you feel that shouldn't be the case, I'd encourage you to open up a separate issue to discuss it. |
Sorry, something went wrong.
|
Daniel Rosenwasser (@DanielRosenwasser) the BigTSQuery dataset has last been updated around June 2018. If you find it useful, I can spend some time updating it |
Sorry, something went wrong.
|
Can Omit please be made strict before 3.5 moves to stable? #30825 |
Sorry, something went wrong.
|
Felix Becker (@felixfbecker) the definition was intentional. |
Sorry, something went wrong.
|
Daniel Rosenwasser (@DanielRosenwasser)
But how a bout the case of Pick? Pick do constrain the use case. Pick: pick members from a group to get a sub-group; As you can see, these 2 helper types are somehow complimentary. Looks pretty nature and intuitive when we use them together. How come Omit being permissive and Pick isn't??? When we make comparison, compare Omit with Exclude is like compare egg with chicken. Exclude is comparable with Extract not Omit, which should be Pick, IMHO. |
Sorry, something went wrong.
|
I've ran into a few bugs which would have been caught if K was constrained (like it is for Pick). Any chance of reconsidering this? |
Sorry, something went wrong.
|
TypeScript is not open-source, it's source-available. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #30455.