Skip to content

compile error in generated model ts file when using lb4 model #1562

@mgleland

Description

@mgleland

Description / Steps to reproduce / Feature proposal

lb4 model
name it, etc
add a property of type array, and type object, using the cli

Current Behavior

generated code is:
...
@Property({
type: 'array',
arrayType: object,

})
fields?: object[];

with the error (at least in vscode): Cannot find name 'object'. Did you mean 'Object'? (the object after arrayType: has the squiggly line)

Expected Behavior

no error in generated code ;-)

See Reporting Issues for more tips on writing good issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions