kimjbstar/prisma-class-generator

registerEnumType placed outside the class

tevonsb opened this issue · 1 comments

With version 0.2.1 the generated registerEnumType is placed outside the class, which causes issues with compilation.

Additionally, I think this should be based on a flag, since it isn't needed unless using graphql. Thoughts?

This issue occurred while adding the graphQL option.

This bug has been fixed in version 0.2.2.