Closed naknode closed 2 years ago
@naknode can you provide an example of how your generate typescript types too?
I see you use typenames: keep
and enumValues: keep
, that's probably why the name is not updated
Have you tried updating typenames
with values in the doc?
@naknode did you see my last comment? Otherwise, I will close this issue if it's inactive for too long
@ardeois Thank you. This is what i needed. I understand. My import statement is now this: import UuidFilter...
However, it's still wrong on this generate code:
name:
overrides && overrides.hasOwnProperty('name')
? overrides.name!
: relationshipsToOmit.has('StringFilter')
? ({} as StringFilter)
: mockStringFilter({}, relationshipsToOmit),
attributes:
overrides && overrides.hasOwnProperty('attributes')
? overrides.attributes!
: relationshipsToOmit.has('JSONFilter')
? ({} as JSONFilter)
: mockJsonFilter({}, relationshipsToOmit),
As you can see, it still says as JSONFilter
when it should say as JsonFilter
like at the top.
This plugin is great except for the fact that I have to rename
JSONFilter
andUUIDFilter
toJsonFilter
andUuidFilter
everywhere after everycodegen
.Is there a way to bypass this or does an MR need to be submitted?
Here is my
build_local_types.yml
: