D
Deno

help

Petition to free the module x/type from deno.land

BBBustin Base7/20/2023
Here is the module url: https://deno.land/x/type It says it would be deleted after 30 days but has nothing published to it. Can it be freed?
CcrowlKats7/20/2023
no need to petition. do you want to take it over?
Bboywithkeyboard7/20/2023
i'd only give it to them if they make something serious out of it, like porting @types over or smth like that but who gives a shit about my opinion
BBBustin Base7/20/2023
yeah I'd like to take it over, I just have a simple function that I write over and over again to basically find the type of an unknown how would one do that? @boywithkeyboard thats an interesting idea... I seem to never need that library anymore but I wonder why it hasn't been ported already?
Bboywithkeyboard7/20/2023
can you give me an example? yeah idk neither xd
Bboywithkeyboard7/20/2023
smth like this? or a function that returns the type of a value?
Bboywithkeyboard7/20/2023
or smth like that?
Bboywithkeyboard7/20/2023
might be full of bugs tho
NNeTT7/20/2023
prolly coz Deno has npm support now and you won't really need @types within Deno's ecosystem.
Bboywithkeyboard7/20/2023
most of the community (including me) hates both the npm: and node: specifier though
NNeTT7/20/2023
yeah and I don't think you'd need @types outside of node modules, would you?
CcrowlKats7/20/2023
send an email to modules@deno.com with the details (new repo, gh usersame, & module you want to take over)
Bboywithkeyboard7/20/2023
@crowlkats would you kindly accept my friend request please? you kept me already on hold for more than a week 😅
CcrowlKats7/20/2023
aaaaarghhh sorry! I am currently in the middle of moving across the continent, so sorry for having forgotten again! could you DM me the details?
Bboywithkeyboard7/20/2023
what are you talking about? 🤔 i just want to be friends with you 😅
CcrowlKats7/20/2023
ah i thought there was something regarding the registry that i vaguely remember, i might be confusing things, mb 😅
Bboywithkeyboard7/20/2023
happens to everyone sometimes 😂 correct, esm.sh does everything behind the scenes for you which is quite nice
ABAltair 680b7/20/2023
Hoping the move goes smoothly. They're never fun!
BBBustin Base7/21/2023
Its even less fancy than that, basically just an enum and a function which infers the runtime type using typeof but also resolves the various things that think they're "objects" but really aren't (I'm looking at you null!!)
BBBustin Base7/21/2023
GitHub
GitHub - justinmchase/type: Simple type inference for javascript ru...
Simple type inference for javascript runtimes. Contribute to justinmchase/type development by creating an account on GitHub.
BBBustin Base7/21/2023
Or for the truly lazy...
BBBustin Base7/21/2023
I use it when recursing over object structures usually, like here: https://github.com/justinmchase/serializable/blob/main/mod.ts#L25
GitHub
serializable/mod.ts at main · justinmchase/serializable
Serializable type definitions for TypeScript. Contribute to justinmchase/serializable development by creating an account on GitHub.
BBBustin Base7/21/2023
(or I would like to use it there, thats another example of copying the memorized code over again)
TTestersen™7/21/2023
This is something https://crux.land is better suited for IMO
NNeTT7/21/2023
Indeed

Looking for more? Join the community!

Recommended Posts
Docs on understanding how Fresh works under the hood.I want to start becoming a contributor for Fresh, I have been looking at PRs and reading documents wNode MongoDB Driver on Deno dropping connection and crashing processHeya folks. I am encountering the most recent error described in this thread https://github.com/denoHow to solve "cannot be invoked without 'new'" thrown from an NPM module ?Hello, An NPM module (which I don't own) uses `call` on something, which throws a `cannot be invokeCoverage with subprocessOne of my tests involves spawning a subprocess. Is there any way to get this subprocess to participaHow to exclude folder from deno lintI use WebStorm. How to exclude specific folder from deno lint? Is it possible in WebStorm? It is posTypeScript compiler type declarationsI'm using `import ts from "npm:typescript"` to work with the TypeScript compiler, but how do I get t[ignore] configuring botNothing to see here, ignore for now 🙂Reuse Deno.serve for other TCP connectionsHello, As a newcommer to Deno, I wrote a client for NNTP protocol (https://github.com/sntran/deno_ndeno coverage crashI run ``` deno test -A --coverage=tmp/coverageData src ``` then ``` deno coverage --include=src/ tmpIs there a way to copy an element and place it somewhere else?Link: https://stackoverflow.com/questions/76704496/is-there-a-way-to-copy-an-element-and-place-it-sonot sure why this code is erroring```typescript for (const number of genNumbers()) { const result = await fetchPages(number); if (Why doesn't POST response from serveTls support streaming chunks from a ReadableStream?We can POST a ReadableStream to a serveTls server, however when we respond with a ReadableStream theWhen I use npm: node: specifiers how can I specify the version?We know in Deno we can do `import { Client, Pool } from "https://deno.land/x/pg@v0.6.1/mod.ts";` I wFakeTime seems to break async testsI am attempting to use FakeTime similarly to in the Faking time example of https://deno.land/manual@How to serve HTTPS with the Deno.serve() APII used to start a dev server with TLS like so ```const server = Deno.listenTls({ port: 7000, trCustom console.log formatting for a class/objectIs there a way to change the way an object/class is printed in the console? For example, instead ofIs there a way to write to a file by replacing bytes?Like "I am a looong file" > write('Test') > 'Test a looong file'std/http/server: URI too long —how to avoid loading those?Using https://deno.land/std@0.194.0/http/server.ts, is there a way to reject long URIs before they aWorker: TS2304 [ERROR]: Cannot find name 'postMessage'When type-checking a worker script that uses the global `postMessage()` method, `deno check` gives aHow to recover from worker death? It terminates my main program…In the error message handler, I replace the dead worker with a new one, but it kills my program eith