microsoft / microsoft/TypeScript
this type checking with conditional types
Open
Nobody has claimed this yet.
In Discussion
Suggestion
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.4k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 117
Description
Bug Report
🕗 Version & Regression Information
ts 4.3.2
⏯ Playground Link
``
🙁 Actual behavior
Compilation error
Argument of type 'string' is not assignable to parameter of type 'PropertiesByType<this, string>'.(2345)
🙂 Expected behavior
Have no errors.
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
Start with the two TypeScript Playground links using TypeScript 4.3.2 and compare the conditional-type version with the version where type filtration is disabled. Investigate why the conditional type rejects the string argument, and consider the issue done when the reported reproduction compiles without errors while preserving the intended type checking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100