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