adding a function to an ObjectType class #1755
Unanswered
shawnjones253
asked this question in
Q&A
Replies: 1 comment
-
additionally, I've tried |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to be able to add static functions to ObjectType classes to support mapping to/from internal service types:
this results in:
TypeError: MyApiReturnType.fromSomeInternalType is not a function
I also tried:
but that results in:
TypeError: Cannot assign to read only property 'someField' of object '#<_MyApiReturnType>'
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions