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

Did you find this page helpful?