Now if I use the above code, this should give error:
import {
startOfDay
} from "https://esm.sh/date-fns";
// This should give error if types were loaded, but it still doesn't give out error?
let foo = startOfDay("foo");
It looks like import maps aren't redefining the types somehow.
Currently
date-fns
can't load up types in Deno when imported like this:I noticed that Deno loads the types just fine if I use this:
This lead me to try what if I use import maps to redefine
https://esm.sh/date-fns
asnpm:date-fns
it didn't seem to work:Now if I use the above code, this should give error:
It looks like import maps aren't redefining the types somehow.