Date-fns typings don't work?
I'm trying this code:
I can see that they use
declare module
in their typings file, is this causing the issue?3 Replies
I also tried this:
https://cdn.skypack.dev/date-fns?dts
as import, but it too doesn't give right types
Interestingly this works:
probably a cdn issue
compat mode should more accurately run npm modules
I think it's issue with their typings.d.ts it uses declare module:
Somehow deno and esm.sh can't understand that.
there is also some weird
namespace
involved for each function