D
Deno

help

NPM Import missing types

BBillionz1/18/2023
Playing around with some deno code and testing a npm import, the original package has types (redaxios) although when I import it it's not showing any intellisence in VS Code
TTestersen™1/18/2023
If the package does not provide its own types you will have to tell deno where to find those types:
// @deno-types="npm:@types/express"
import express from "npm:express";
// @deno-types="npm:@types/express"
import express from "npm:express";
BBillionz1/18/2023
Thanks although already tried this and the package does supply its own types. :/
BBillionz1/18/2023
BBillionz1/18/2023
But i've managed to get it working with other packages, so not sure whats the issue with this one.
TTestersen™1/18/2023
What in the fuck are those types 🤮
BBillionz1/18/2023
haha don't worry i've switched over to a similar package But maybe worth listing as a bug / to be aware of Thanks for your help
TTestersen™1/18/2023
Anytime Those typings are definitely cursed, and I hope to god I never see them again xd

Looking for more? Join the community!

Recommended Posts
Update value by reference without duplicating the dataIm exploring the world of FFI, porting some C applications I have to TypeScript, with the help of Dehow to hash very large filesWe have deprecated the old std/hash code in favor of the crypto module, but I do not know what the sxstate - no types importedimport * as xstate from "https://deno.land/x/xstate@xstate@4.35.2/src/index.ts"; file is cached, yetexample of kysely running on deno deploy?Deno Deploy awesomely can connect to postgres directly from the edge https://deno.com/blog/deploy-poUpdating digest with web cryptoFor some context, I'm updating some code that was importing from `std/hash` (specifically `std/hash/What would be the best third party module implementing `deflate()`?Currently using `npm:pako` but I'd like to avoid npm specifiers (modules in general).Pass string to struct FFIQuick question about Struct-Value feature, what would be the best way to pass `*const u8` (or stringdeno blog without html sanitizationI want to be able to javascript Canvas API things in my blog - surely this is possible?Killing subprocess not workingAnyone know what I'm doing wrong when trying to kill a process? I have a process start another procPossible to check of a file is being run as worker?```ts if (import.meta.main) { main() } ``` is there a way to disable calling `main()` if the file Deno linter is telling me that writeAll from streams conversion is deprecatedIs import { writeAll } from "https://deno.land/std@0.171.0/streams/conversion.ts" deprecated?How to get Deno's default compilerOptions value?I want to add more compilerOptions.lib options like this: ``` "compilerOptions": { "jsx": "readeno.run not working as expectedso when i run `mysql --defaults-extra-file=./tmpcnf_from_f_execute_query.cnf -e "DROP DATABASE test_Why doesn't latest Deno standard library for encoding CSV files support StringifyOptions?I need to remove headers see: https://deno.land/std@0.167.0/encoding/csv.ts?s=stringifyIs there any way to trace where permissions prompts are coming from?I'm running some code through Deno and its prompting for some permissions. How can I find out where modifying the Deno objectheyo. is there any way to add our own properties to the `Deno` object? I read something which said s