DenoDDeno
Powered by
CianticC
Denoโ€ข4y agoโ€ข
6 replies
Ciantic

Date-fns typings don't work?

I'm trying this code:

import { startOfDay } from "https://esm.sh/date-fns@2.29.3";

// No error?
let foo = startOfDay("foo");
import { startOfDay } from "https://esm.sh/date-fns@2.29.3";

// No error?
let foo = startOfDay("foo");


I can see that they use
declare module
declare module
in their typings file, is this causing the issue?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Dynamic npm imports don't work
ร“scarร“ร“scar / help
4y ago
Deno compile with "--no-terminal" don't work
Inplex-sysIInplex-sys / help
3y ago
Arrow keys don't work when using cli on windows
frazzleFfrazzle / help
4y ago