Bustin Base
Bustin Base•17mo ago

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

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?
24 Replies
crowlKats
crowlKats•17mo ago
no need to petition. do you want to take it over?
sakuta
sakuta•17mo ago
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
Bustin Base
Bustin BaseOP•17mo ago
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?
sakuta
sakuta•17mo ago
can you give me an example? yeah idk neither xd
sakuta
sakuta•17mo ago
smth like this? or a function that returns the type of a value?
sakuta
sakuta•17mo ago
or smth like that?
sakuta
sakuta•17mo ago
might be full of bugs tho
NeTT
NeTT•17mo ago
prolly coz Deno has npm support now and you won't really need @types within Deno's ecosystem.
sakuta
sakuta•17mo ago
most of the community (including me) hates both the npm: and node: specifier though
NeTT
NeTT•17mo ago
yeah and I don't think you'd need @types outside of node modules, would you?
crowlKats
crowlKats•17mo ago
send an email to modules@deno.com with the details (new repo, gh usersame, & module you want to take over)
sakuta
sakuta•17mo ago
@crowlkats would you kindly accept my friend request please? you kept me already on hold for more than a week 😅
crowlKats
crowlKats•17mo ago
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?
sakuta
sakuta•17mo ago
what are you talking about? 🤔 i just want to be friends with you 😅
crowlKats
crowlKats•17mo ago
ah i thought there was something regarding the registry that i vaguely remember, i might be confusing things, mb 😅
sakuta
sakuta•17mo ago
happens to everyone sometimes 😂 correct, esm.sh does everything behind the scenes for you which is quite nice
NDH
NDH•17mo ago
Hoping the move goes smoothly. They're never fun!
Bustin Base
Bustin BaseOP•17mo ago
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!!)
Bustin Base
Bustin BaseOP•17mo ago
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.
Bustin Base
Bustin BaseOP•17mo ago
Or for the truly lazy...
Bustin Base
Bustin BaseOP•17mo ago
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.
Bustin Base
Bustin BaseOP•17mo ago
(or I would like to use it there, thats another example of copying the memorized code over again)
Testersenâ„¢
Testersen™•17mo ago
This is something https://crux.land is better suited for IMO
NeTT
NeTT•17mo ago
Indeed