Jox
Jox
DDeno
Created by Jox on 11/13/2023 in #help
How do I get a d.ts file to be used?
I'm extending a type from hono by adding that code in a hono.d.ts file in my src folder.
declare module "hono" {
interface ContextVariableMap {
someNewProperty: string;
}
}
declare module "hono" {
interface ContextVariableMap {
someNewProperty: string;
}
}
But TypeScript still doesn't know about the new property so obviously I'm doing something wrong. What steps am I missing or what am I missunderstanding when it comes to extending a type for a third party library? Does the module name have to match something in the import maps of deno.json? Any help would be much appreciated.
5 replies
DDeno
Created by Jox on 9/22/2023 in #help
How to run tailwindcss cli with deno task?
I would like to be able to run the tailwindcss cli tool to watch and build stylesheets as per their cli docs, https://tailwindcss.com/docs/installation But I can't see a way that I could do that with a deno task like a I could with an npm script? Is this a case where I have to add a package.json file or is it possible to do without that?
7 replies
DDeno
Created by Jox on 9/21/2023 in #help
Module not found when running deno run
Something weird has started happening. When I run deno run src/main.ts it seems as if Deno is trying to run it from a completely bonkers file path. error: Module not found "file:///Users/me/Projects/my-project/src/Users/me/Projects/my-project/src/main.ts". I don't know what's happened and why it seems to append the Users folder twice. Does anyone have any idea?
9 replies