{"action":"opened","issue":{"url":"https://api.github.com/repos/umijs/umi/issues/1058","repository_url":"https://api.github.com/repos/umijs/umi","labels_url":"https://api.github.com/repos/umijs/umi/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/umijs/umi/issues/1058/comments","events_url":"https://api.github.com/repos/umijs/umi/issues/1058/events","html_url":"https://github.com/umijs/umi/issues/1058","id":359175113,"node_id":"MDU6SXNzdWUzNTkxNzUxMTM=","number":1058,"title":"umi/link onClick 在 TS 下报错","user":{"login":"dreamerblue","id":19774268,"node_id":"MDQ6VXNlcjE5Nzc0MjY4","avatar_url":"https://avatars1.githubusercontent.com/u/19774268?v=4","gravatar_id":"","url":"https://api.github.com/users/dreamerblue","html_url":"https://github.com/dreamerblue","followers_url":"https://api.github.com/users/dreamerblue/followers","following_url":"https://api.github.com/users/dreamerblue/following{/other_user}","gists_url":"https://api.github.com/users/dreamerblue/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamerblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamerblue/subscriptions","organizations_url":"https://api.github.com/users/dreamerblue/orgs","repos_url":"https://api.github.com/users/dreamerblue/repos","events_url":"https://api.github.com/users/dreamerblue/events{/privacy}","received_events_url":"https://api.github.com/users/dreamerblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-11T18:51:32Z","updated_at":"2018-09-11T18:51:32Z","closed_at":null,"author_association":"NONE","body":"```<Link to=\"/user\" onClick={onLinkClick}>User</Link>```\r\n\r\n编译后的 JS 可以正常运行，但是 onClick 在 <Link> 上传入会导致 TS 报错：\r\n\r\nerror TS2339: Property 'onClick' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Link> & Readonly<{ children?: ReactNode; }> & Readonly<{ to: string | { pathname: string; search?: string; hash?: string; state?: any; }; replace?: boolean; innerRef?: Function; title?: string; id?: string; className?: string; }>'.\r\n\r\n想请教下如何解决？\r\n"}}
{"actor":{"display_login":"dreamerblue"}}