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