-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class objects should be converted to optional properties #21
Comments
Hi, I'm glad you like the tool! Yes it would result in those interfaces, if it wasn't for the fact that empty classes are excluded. |
My classes aren't empty (I updated the simplified example), but I'm getting non optional properties. Am I maybe missing something ? |
Yes that works of course. Therefore classes should be exported as optionals (this includes strings) |
Hi, thanks for this great tool !
I've got a question, maybe i'm missing something.
Let's say I've this 2 classes :
shouldn't this be converted to :
I'm asking this because of TS2322 i'm not able to set non-optional properties to undefined.
The text was updated successfully, but these errors were encountered: