Replies: 2 comments 2 replies
-
I just noticed that it probably doesn't detect the property definitions because the generic parameter |
Beta Was this translation helpful? Give feedback.
0 replies
-
In the meantime I figured it was just easier to export the instance types from the model definitions. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a function which returns a Neogma model with a neogma instance dependency injection, for example:
Is there any way to extract a NeogmaInstance from this? I attempted to do it like this:
Which doesn't throw errors but also doesn't fully work. For some reason the
ReturnType<FunctionT>
part completely ignores theNeogmaModel
return type and creates some weird generic type that doesn't even look like aNeogmaInstance
and doesn't have any property definitions.Beta Was this translation helpful? Give feedback.
All reactions