Compatibility fix for keyof T in ts 2.9#25271
Conversation
|
@rbuckton Thank you for submitting this PR! 🔔 @asvetliakov @Ragg- @beaulac @antonvasin @Aaronphy @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch @rosskevin @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @mretolaza @katbusch @vitosamson @LKay @aaronbeall @jrakotoharisoa @flaub @alelode @UJosue10 @dawnmist @Ogglas @eugrdn @brmenchl @GiedriusGrabauskas @Chnoch @tkqubo @thasner @kenzierocks @clayne11 @tansongyang @NicholasBoll @mDibyo @pdeva @Graphcool @voxmatt @alloy @npirotte @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @DovydasNavickas @tkrotoff @huy-nguyen @grmiade @DaIgeb @egorshulga @neuoy @rraina @iskandersierra @mrapogee @Pajn @carsonf @aikoven @bancek @alsiola @tehbi4 @huwmartin - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
|
@rbuckton The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
weswigham
left a comment
There was a problem hiding this comment.
Looks good to me. I'm actually surprised there are so few copies of the old style of diff/omit.
|
Thanks for the PR, this addresses a bug with the Cloud Datastore types where Datastore.KEY is typed as "symbol" instead of "unique symbol". Thanks! |
12a4876 to
b73b442
Compare
|
A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped! |
|
I can't find much information about versioning for this repo. I was curious what version of the Google Cloud datastore types would incorporate this change. Versioning happens at the package level rather than the repository level in this case, right? |
|
@lkgarrison The published version of a package is the major.minor from line 1 of its |
This is a backwards-compatibility fix for
keyofin light of recent changes to the default behavior ofkeyofin 2.9. The goal of this change is to update existing definitions with a type compatible with both TS 2.9 and earlier versions of TS. The only change in this PR that could not be made backwards compatible is the definition ofDatastore.KEYin"google-cloud__datastore"as TS 2.9 adds further restrictions when indexing using non-uniquesymboltypes.Please fill in this template.
npm test.)npm run lint package-name(ortscif notslint.jsonis present).If changing an existing definition: