Skip to content

Type inferrence and optional clients #1539

Answered by saska
saska asked this question in Q&A
Discussion options

You must be logged in to vote

Found the issue after trying to replicate in a fresh env; the DOM defs are apparently necessary for something somewhere and were excluded in our original config. So changing

{
    "compilerOptions": {
        ...
        "lib": [
            "ES2022"
        ],
        ...
    }
}

to

{
    "compilerOptions": {
        ...
        "lib": [
            "ES2022",
            "DOM"
        ],
        ...
    }
}

fixed the issue.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@saska
Comment options

@saska
Comment options

@mrlubos
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by saska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants