-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript 2.8 — initial support & updates #14
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
dd32b5c
TypeScript 2.8 — initial support & updates
fbartho 803516b
PR Feedback - delete custom NonNullable now that public
fbartho 0970ff4
PR Feedback: Simplify Overwrite Impl.
fbartho 8ff4824
PR Feedback: make Diff an alias to Extract
fbartho 229ea30
PR Feedback: Delete Diff & Overlap as now provided by Exclude & Extract
fbartho 034e1b7
Update to new dtslint! — Tests pass!
fbartho e0c4955
PR Feedback: Simplify Overwrite
fbartho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -89,9 +89,9 @@ [email protected]: | |
version "0.0.1" | ||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" | ||
|
||
definitelytyped-header-parser@Microsoft/definitelytyped-header-parser#production: | ||
"definitelytyped-header-parser@github:Microsoft/definitelytyped-header-parser#production": | ||
version "0.0.0" | ||
resolved "https://codeload.github.com/Microsoft/definitelytyped-header-parser/tar.gz/210b44cf9e7e5b9783a41df4f664695ade5325b1" | ||
resolved "https://codeload.github.com/Microsoft/definitelytyped-header-parser/tar.gz/f074e863231ef0d79a31c0a9edaf1b82c98469ef" | ||
dependencies: | ||
"@types/parsimmon" "^1.3.0" | ||
parsimmon "^1.2.0" | ||
|
@@ -100,14 +100,14 @@ diff@^3.2.0: | |
version "3.4.0" | ||
resolved "https://registry.yarnpkg.com/diff/-/diff-3.4.0.tgz#b1d85507daf3964828de54b37d0d73ba67dda56c" | ||
|
||
dtslint@^0.2.0: | ||
version "0.2.0" | ||
resolved "https://registry.yarnpkg.com/dtslint/-/dtslint-0.2.0.tgz#7723be0d974ad133ff1e5cdb84728669ca66c51e" | ||
dtslint@^0.3.0: | ||
version "0.3.0" | ||
resolved "https://registry.yarnpkg.com/dtslint/-/dtslint-0.3.0.tgz#918e664a6f7e1f54ba22088daa2bc6e64a6001c1" | ||
dependencies: | ||
definitelytyped-header-parser Microsoft/definitelytyped-header-parser#production | ||
fs-promise "^2.0.0" | ||
strip-json-comments "^2.0.1" | ||
tslint "^5.4.2" | ||
tslint "^5.9.1" | ||
typescript next | ||
|
||
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: | ||
|
@@ -281,7 +281,7 @@ tslib@^1.8.0, tslib@^1.8.1: | |
version "1.9.0" | ||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8" | ||
|
||
tslint@^5.4.2: | ||
tslint@^5.9.1: | ||
version "5.9.1" | ||
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae" | ||
dependencies: | ||
|
@@ -304,9 +304,9 @@ tsutils@^2.12.1: | |
dependencies: | ||
tslib "^1.8.1" | ||
|
||
typescript@^2.6.2: | ||
version "2.6.2" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4" | ||
typescript@^2.8.1: | ||
version "2.8.1" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.1.tgz#6160e4f8f195d5ba81d4876f9c0cc1fbc0820624" | ||
|
||
typescript@next: | ||
version "2.8.0-dev.20180127" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Come to think of it, this could be (and always could have been) just
There was never any need for the old
Overlap
, or am I missing something?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, I don't know -- I didn't do TypeScript when that existed, does that pass the old tests? -- Do you want it changed to this?
I've never personally used the
Overwrite
operator, but your solution looks totally like an obvious implementation. I would probably have implemented it that way if I needed that operation.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, looking at my code, I have exactly that pattern, but I don't do the
keyof T & keyof U
and just target theOmit
directly at the keys I want to junk & replace.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, thinking it through I'm pretty sure
Extract<keyof T, keyof U>
is equivalent in all cases tokeyof T & keyof U
, so let's make that change.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!