how do I add something to the deps.ts file that isn't in curly braces?
I have
...
import formatRelative from "https://deno.land/x/date_fns@v2.22.1/formatRelative/index.ts";
import formatRelative from "https://deno.land/x/date_fns@v2.22.1/formatRelative/index.ts";
FindCursor
If I want to get the
FindCursor type from the mongo package do I do it like this?
```
export type {FindCursor} from "https://deno.land/x/mongo/src/collection/commands/find.ts";
...extract generic type of generic class
how to get typeof generic type in generic class
i want to extract type T...
class GenericClass<T> {}
class GenericClass<T> {}
Github Repository File Tree Generator based on Deno?
Is there some project file tree generator written in TS / Deno?
From where can I get parseArgs?
From where can I get parseArgs?
The example
import parseArgs from "https://github.com/bartlomieju/parseargs/index.ts";...where do I find the documentation for console.dir
https://deno.land/api@v1.26.0?s=Console#method_dir_5
I can't seem to find what the options are
...
How to import the Image class to Deno Fresh?
I'm trying to access an image's
naturalHeight and naturalWidth. But when I construct the object new Image() I get a Reference Error that it is not defined. I figured I could import it from a preact module or something similar to (import {Image} from 'preact/image), but I simply couldn't find out from which module to import it.Import local typescript file so both Deno (LSP) and TS work?
Seems like Deno wants the import to end with
.ts while TS wants no file extension.
Is there any way to change either of them to accept the other?...sub sub domain on deno.dev
Is it possible to create a sub sub domain with deno.dev, example, invite.my-bot.deno.dev, support.my-bot.deno.dev, discord.my-bot.deno.dev ?
Can I run an express application under deno
Or do I need to port it to Oak?
Is there an "express -> oak" cheatsheet ?...
how to cli run node modules without --compat
So
deno run --compat has now been removed in favor of npm: specifiers https://deno.com/blog/v1.26#--compat-mode-removed. I am sure this consolidates a lot of code, but I am unsure how I can gain back certain functionality. For instance, I could run a solidjs template out of the box from deno with compat like so:
deno run --compat --unstable --allow-env --allow-read --allow-run --allow-net node_modules/.bin/vite dev
Using npm specifiers, I dont seem to have the same capabilities.
deno run --compat --unstable --allow-env --allow-read --allow-run npm:vite...Intellisense on an import not working, works for friend
I cannot for the life of me get
import * as bsdeno from "https://raw.githubusercontent.com/KivalEvan/BeatSaber-Deno/main/types/beatmap/v3/mod.ts" to have intellisense.
I try typing const b: bsdeno. and nothing shows up. I tried restarting TS and deno language servers, tried restarting VSC, tried updating deno, and restarting my computer. No dice.. my friend is using the exact same import and intellisense is working fine....
Where the Typescript Header files cached by Dino on MacOS
Is there something that describes where all the different things get squirreled away?
?? lint doesn't seem to catch type errors ??
why am not getting a type checking error?
```
let aaa: string = 151;...
How to create a broadcast system with streams and oak?
i'm trying to create a simple "web-radio" to learn more about streams with deno and oak.
i'm stuck on the part that oak read a stream and send to response
let me show you some code
```ts
// nextSong() {}...