microsoft / microsoft/TypeScript
Incremental type checking failure (regression)
Open
Nobody has claimed this yet.
Needs Investigation
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
TypeScript Version: 3.7.x-dev.20200505
Search Terms:
Code
- clone https://github.com/falsandtru/typed-dom
- npm i
- open src/builder.ts (no error)
- remove the closing parenthesis of
API(html, shadow) - redo
- error
Argument of type 'Factory<HTMLElementTagNameMap>' is not assignable to parameter of type 'Factory<ShadowHostElementTagNameMap>'.
Property ''custom-tag'' is missing in type 'HTMLElementTagNameMap' but required in type 'ShadowHostElementTagNameMap'.ts(2345)
Expected behavior:
no error
Actual behavior:
Playground Link:
Related Issues:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Clone the linked typed-dom reproduction, run npm i, and open src/builder.ts to confirm the initial state. Remove the closing parenthesis from API(html, shadow), redo the check, and investigate the incremental type-checking path until the expected result—no error—is restored.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100