Unclear about Typescript usage #458
Unanswered
filipeestacio
asked this question in
Q&A
Replies: 1 comment 6 replies
-
|
Wait. I think I got it. Does this look about right? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having a lot of trouble understanding how to use Typescript with ElectroDB. It's probably just lack of skill to understand the docs, but I could really benefit from an example, please.
For instance, in my application I have defined as Account Entity as such:
And I am using this Entity here:
How do I add the correct type annotations to the create and the get method? I've tried a bunch of things, but at this point I'm not even throwing educated guesses anymore so would really appreciate some pointing in the right direction. I feel like there is a paragraph missing from the docs or something.
Beta Was this translation helpful? Give feedback.
All reactions