添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
魁梧的书签  ·  使用TypeScript读取JSON文件·  10 小时前    · 
小胡子的蛋挞  ·  模块解析 | TypeScript手册·  10 小时前    · 
没读研的小蝌蚪  ·  使用 TypeScript - Rsbuild·  10 小时前    · 
玉树临风的苦瓜  ·  [typescript] error ...·  3 小时前    · 
重情义的马克杯  ·  TypeScript and React: ...·  3 小时前    · 
乐观的酸菜鱼  ·  Pytorch错误- ...·  1 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account [typescript] error TS2707: Generic type 'MouseEvent<T>' requires between 0 and 1 type arguments. [typescript] error TS2707: Generic type 'MouseEvent<T>' requires between 0 and 1 type arguments. in19farkt opened this issue Jan 11, 2019 · 2 comments

Actual behavior

TypeScript errors:

node_modules/material-ui-pickers/_shared/DateTextField.d.ts:92:22 - error TS2707: Generic type 'SyntheticEvent<T>' requires between 0 and 1 type arguments.
92     handleFocus: (e: React.SyntheticEvent<Element, Event>) => void;
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/material-ui-pickers/_shared/DateTextField.d.ts:94:21 - error TS2707: Generic type 'SyntheticEvent<T>' requires between 0 and 1 type arguments.
94     openPicker: (e: React.SyntheticEvent<Element, Event>) => void;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/material-ui-pickers/TimePicker/components/Clock.d.ts:21:21 - error TS2707: Generic type 'MouseEvent<T>' requires between 0 and 1 type arguments.
21     handleMove: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/material-ui-pickers/TimePicker/components/Clock.d.ts:22:24 - error TS2707: Generic type 'MouseEvent<T>' requires between 0 and 1 type arguments.
22     handleMouseUp: (e: React.MouseEvent<Element, MouseEvent>) => void;
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/material-ui-pickers/wrappers/InlineWrapper.d.ts:34:15 - error TS2707: Generic type 'SyntheticEvent<T>' requiresbetween 0 and 1 type arguments.
34     open: (e: React.SyntheticEvent<Element, Event>) => void;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[17:36:24] Found 5 errors. Watching for file changes.

Live example

changed the title [typescript error TS2707: Generic type 'MouseEvent<T>' requires between 0 and 1 type arguments. [typescript] error TS2707: Generic type 'MouseEvent<T>' requires between 0 and 1 type arguments. Jan 11, 2019