Skip to content

Commit

Permalink
feat: drop custom Unknown type
Browse files Browse the repository at this point in the history
`unknown` is now a built-in keyword in typescript. Since we will no
longer be supporting pre-3.0 versions of typescript, we can drop the
`Unknown` helper.

BREAKING CHANGE: `Unknown` is no longer supported. Can find and replace
all instances of `Unknown` with `unknown` to maintain same behavior.
  • Loading branch information
andnp committed Mar 11, 2019
1 parent 4bdf1ad commit 65c067f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/types/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export type NoInfer<T> = T & ObjectType<T>;
* @returns `T | null | undefined`
*/
export type Nullable<T> = T | null | undefined;
/**
* A constant type that mimics an unknowable type.
* @returns `{} | null | undefined`
*/
export type Unknown = {} | null | undefined;

/**
* no-doc - This is a helper for `Nominal` and is not useful on its own
Expand Down

0 comments on commit 65c067f

Please sign in to comment.