how do I add something to the deps.ts file that isn't in curly braces?
I have
directly in source file and it works properly.
I'd like to move it to my
deps.ts
file but I can't figure out how to do it.22 Replies
This works for me:
Is there a better way to do this?
You can do something like:
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
In the repl it returns
Since it’s a default export I think you don’t need it, but I’m not sure
I’ll check
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yup you’re right, since we are getting the default and exporting it under a named export, so we need the braces in the main file 👍🏻
how will it work differently than expected?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This is what I am running and seems to be giving me correct answers.
deps.ts
my_display_in_html.ts
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
You are right
deps.ts
also works
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Thank you
Is there some version of this that will work with my FindCursor problem?
I want to get the
FindCursor
type from the mongo package and I don't see how to do itIf you’re using mongodb my personal recommendation is to ditch the packages and to use the mongodb atlas data api. It’s extremely easy and you can use native fetch
thank you.
is that one of these
https://deno.land/x/atlas_sdk@v1.0.3
https://deno.land/x/atlas_sdk3@v0.3.1
which should I be using?
?? will they work with local installations of mongodb ??My bad, you didn’t specify that you had a local installation so I assumed you were using atlas. You’ll need the package you were using for the local installation
If I stick to Altas, which of those two packages would I want to use? I don't understand the version numbering?
It goes from left to right. In this case
1.0.3
is newer than 0.3.1
, so use the newer oneUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
Oh lol I didn’t see the 3, just get the one that suits you the most
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
thank you