loopback-next icon indicating copy to clipboard operation
loopback-next copied to clipboard

Type defination Errors

Open sureshkodur opened this issue 7 years ago • 4 comments

Hi, When we generate models using discover method, models property types are generating with upper camel case i.e., 'String' instead of 'string' . Then we are getting errors like this.

Argument of type 'String | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'

How do we resolve these issues?

sureshkodur avatar Aug 01 '19 10:08 sureshkodur

Hi , can you give more details about this issue like a model example or a way to reproduce =)

godartm avatar Aug 01 '19 12:08 godartm

I thought it's been fixed through https://github.com/strongloop/loopback-next/issues/2953. I assume you're using the latest @loopback/cli?

dhmlau avatar Aug 02 '19 02:08 dhmlau

Closing due to inactivity. @sureshkodur, if you still encounter this issue, please feel free to open a new issue with details to reproduce the problem. Thanks!

dhmlau avatar Dec 16 '19 00:12 dhmlau

Yes @dhmlau . This issue has been resolved. Thanks

sureshdmavericks avatar Dec 16 '19 06:12 sureshdmavericks