Typing issues with Typescript 3 and new LibraryManagedAttributes feature
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Possibly related to #11677
Version
3.8.0
Environment
typescript@3.0.1 @types/react@16.4.8 @types/react-dom@16.0.7
Reproduction link
https://github.com/cdeutsch/LibraryManagedAttributes-Repro/
Steps to reproduce
Try to use <Input>
with TypeScript 3 and latest @types/react and @types/react-dom
What is expected?
No errors
What is actually happening?
Type ‘{}’ is not assignable to type ‘Pick<MergePropTypes<Readonly<{ children?: ReactNode; }> & Readonly<InputProps>, InferProps<{ type: any; id: any; size: any; maxLength: any; disabled: any; value: any; defaultValue: any; className: any; addonBefore: any; … 9 more …; suffix: any; }>>, “children” | … 281 more … | “autosize”>’. Property ‘autosize’ is missing in type ‘{}’.
More information here: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/27805
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Typing issues with Typescript 3 and new ... - Issuehunt
With tsc 3.0.1 I was getting: Property 'autosize' is missing in type for Input Property 'combobox' is missing in type for Select Property...
Read more >Documentation - TypeScript 3.0
TypeScript 3.0 introduces a new concept of project references. ... With these features it becomes possible to strongly type a number of higher-order ......
Read more >TypeScript error: Duplicate identifier 'LibraryManagedAttributes'
You may find that the duplicates are located in node_modules/@types/react and node_modules/types/react-dom/@types/react or a similar set-up, ...
Read more >Announcing TypeScript 3.0 - Microsoft Developer Blogs
That's why TypeScript 3.0, the language supports a new type alias in the JSX namespace called LibraryManagedAttributes . Despite the long name, ...
Read more >New Features in TypeScript You Didn't Know Exist
The TypeScript compiler reads in TypeScript code, which has things like type declarations and type-annotations and emits a clean and readable ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me the workaround is adding
"skipLibCheck": true
totsconfig.json
.https://stackoverflow.com/a/52404148/2230045
This isn’t good workaround Better not use Typescript then