samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.76k stars 91 forks source link

Block cloning `object` type. #838

Closed samchon closed 5 months ago

samchon commented 5 months ago

When clone mode be turned on, and there's an object type in somewhere, @nestia/sdk tries to define interface object {} type and import it. By the way, TypeScript does not allow to define the object tyype, because it is a reserved keyword.

This PR fixes the bug, by chaning the object type to be empty object literal expression type {}.