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•2y 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•2y 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•2y 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•2y ago
Message Not Public
Sign In & Join Server To View
You are right
deps.ts
also works
Unknown User•2y 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 ??