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 have a pnpm node TypeScript project where I use date-fns and date-fns-tz.
A snippet like the following type checks, even though the second line should not be passing. When clicking into the import in VSCode for subDays, it's pointing me to date-fns-tz instead of date-fns, and the typings.ts file it takes me to use the old type definitions for the CurriedFn* interfaces instead of the ones introduced in this PR from date-fns.
import * as fns from "date-fns/fp";
console.log("date", fns.subDays(7, new Date()));
console.log("date", fns.subDays(new Date(), 7)); // this passes, but it shouldn't
The text was updated successfully, but these errors were encountered:
I have a pnpm node TypeScript project where I use
date-fns
anddate-fns-tz
.A snippet like the following type checks, even though the second line should not be passing. When clicking into the import in VSCode for
subDays
, it's pointing me to date-fns-tz instead of date-fns, and the typings.ts file it takes me to use the old type definitions for theCurriedFn*
interfaces instead of the ones introduced in this PR from date-fns.The text was updated successfully, but these errors were encountered: