Skip to content

Invalid syntax in .d.ts files in Typescript 3.9 #33

@ostrowr

Description

@ostrowr

Typescript 3.9 introduced a cap on type size. It's easy to reach that cap when using this library.

See microsoft/TypeScript#38557 for more information and details about the workarounds.

Describe the bug
.d.ts files are truncated, producing invalid syntax. "..."

To work around this, you can try the fix described here: microsoft/TypeScript#38557 (comment) or (possibly) split up your schemas into several files.

You can also continue to use 3.7 or 3.8 until this is fixed.

I'm hoping the Typescript maintainers change their mind about this cap.

To Reproduce
Any sufficiently complicated (set of) schemas in some file may hit this cap.

Expected behavior
tsc produces valid code

Actual behavior
tsc produces invalid code

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions