dwjohnston / dwjohnston/advancedish-typescript
Not a very useful error on HOC
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
```
Argument of type '(props: { name: string; }) => Element' is not assignable to parameter of type 'ComponentType<{ owner: string; }>'.
Type '(props: { name: string; }) => Element' is not assignable to type 'FunctionComponent<{ owner: string; }>'.
Types of parameters 'props' and 'props' are incompatible.
Property 'name' is missing in type 'PropsWithChildren<{ owner: string; }>' but required in type '{ name: string; }'.(2345)
input.tsx(28, 23): 'name' is declared here.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with input.tsx at line 28 and inspect the HOC example that produces the shown TypeScript diagnostic. Determine the intended improvement to the error and define a reproducible check for the revised diagnostic; the issue does not name other files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100