You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unable to test this on prior versions because of the following error:
❯ npm i -D typescript@next
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR! dev typescript@"4.6.0-dev.20211105" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@">=3.3.1" from [email protected]
npm ERR! node_modules/eslint-config-next
npm ERR! dev eslint-config-next@"12.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/skainswo/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/skainswo/.npm/_logs/2021-11-05T19_54_53_547Z-debug.log
_notNull.bind(null, Error), partial(_notNull, Error), and partial2(_notNull, Error) are typed unhelpfully as (v: unknown) => unknown. I can understand that bind is messy to infer types on, but I don't understand the trouble with partial and partial2 which are defined with simple type signatures.
🙂 Expected behavior
For everything to have the type <T>(v: T | null | undefined) => T.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
partial application, currying, type inference, higher-order functions, polymorphism
🕗 Version & Regression Information
Affects [email protected] and v4.5.0-beta.
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
_notNull.bind(null, Error)
,partial(_notNull, Error)
, andpartial2(_notNull, Error)
are typed unhelpfully as(v: unknown) => unknown
. I can understand thatbind
is messy to infer types on, but I don't understand the trouble withpartial
andpartial2
which are defined with simple type signatures.🙂 Expected behavior
For everything to have the type
<T>(v: T | null | undefined) => T
.The text was updated successfully, but these errors were encountered: