Skip to content

Commit

Permalink
patch: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidg3 committed Feb 12, 2024
1 parent 8433810 commit fd56aa4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
"@sprucelabs/esm-postbuild": "^2.0.22",
"@sprucelabs/semantic-release": "^4.0.8",
"@types/deep-equal": "^1.0.4",
"@types/jest": "^29.5.11",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.14.202",
"eslint": "^8.56.0",
"eslint-config-spruce": "^10.13.6",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"tsc-watch": "^6.0.4",
"tsconfig-paths": "^4.2.0",
"yarn-upgrade-all": "^0.7.2"
Expand Down
11 changes: 6 additions & 5 deletions src/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ type RecursivePartial<T> = {
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N
type IsAny<T> = IfAny<T, true, never>

type TypeEqual<T, U> = IsAny<T> extends never
? Exclude<T, U> extends never
? Exclude<U, T> extends never
? true
type TypeEqual<T, U> =
IsAny<T> extends never
? Exclude<T, U> extends never
? Exclude<U, T> extends never
? true
: false
: false
: false
: false

function isExactType<T, E, Pass = TypeEqual<T, E>>(_: Pass) {}

Expand Down

0 comments on commit fd56aa4

Please sign in to comment.