Skip to content

TS7018 error in generated typescript #2430

Description

@bagley2014

In the generated typescript there's a function m that gives a compiler error.

function m(additional: any) {
    return { props: [], additional };
}

The error is error TS7018: Object literal's property 'props' implicitly has an 'any[]' type.

Someone else may have had a similar issue (#1437) but their post is fairly vague. I created bagley2014/quicktype-bug-repro to make it easy for others to reproduce the error. npm install, npm run quicktype , and npm run build should repro the build error.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions