You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the pet store example, when first trying to run it, you get:
model.ts(250,10): error TS2564: Property 'name' has no initializer and is not definitely assigned in the constructor.
model.ts(252,10): error TS2564: Property 'photoUrls' has no initializer and is not definitely assigned in the constructor.
These are required properties. Is there a way we can prevent these errors? Adding a tsconfig.json to the generated code is one option: https://stackoverflow.com/a/50241920/
The text was updated successfully, but these errors were encountered:
Using the pet store example, when first trying to run it, you get:
model.ts(250,10): error TS2564: Property 'name' has no initializer and is not definitely assigned in the constructor.
model.ts(252,10): error TS2564: Property 'photoUrls' has no initializer and is not definitely assigned in the constructor.
These are required properties. Is there a way we can prevent these errors? Adding a tsconfig.json to the generated code is one option: https://stackoverflow.com/a/50241920/
The text was updated successfully, but these errors were encountered: