-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We don't need `Diff` any longer since `Exclude` exists (and has for a while). `Diff` is just a wrapper over `Exclude` now anyways. BREAKING CHANGE: `Diff` is no longer exported from simplytyped. Can find and replace `Diff` for `Exclude` to maintain same functionality.
- Loading branch information
Showing
3 changed files
with
4 additions
and
23 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
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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import { True, False, And } from './conditionals'; | ||
import { IsNever } from './predicates'; | ||
|
||
// TODO: this is here only for backwards compatibility | ||
export type Diff<T, U> = Exclude<T, U>; | ||
|
||
export type DropString<T extends string, U extends T> = Diff<T, U>; | ||
export type DropString<T extends string, U extends T> = Exclude<T, U>; | ||
|
||
export type StringEqual<T extends string, U extends string> = | ||
And< | ||
IsNever<Diff<T, U>>, | ||
IsNever<Diff<U, T>> | ||
IsNever<Exclude<T, U>>, | ||
IsNever<Exclude<U, T>> | ||
>; | ||
|
||
export type UnionContains<T, U> = U extends T ? True : False; |
This file was deleted.
Oops, something went wrong.