{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/12321","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/12321/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/12321/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/12321/events","html_url":"https://github.com/ant-design/ant-design/issues/12321","id":361685611,"node_id":"MDU6SXNzdWUzNjE2ODU2MTE=","number":12321,"title":"Typescript: expose Tooltip align interface","user":{"login":"magnnus","id":14748945,"node_id":"MDQ6VXNlcjE0NzQ4OTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/14748945?v=4","gravatar_id":"","url":"https://api.github.com/users/magnnus","html_url":"https://github.com/magnnus","followers_url":"https://api.github.com/users/magnnus/followers","following_url":"https://api.github.com/users/magnnus/following{/other_user}","gists_url":"https://api.github.com/users/magnnus/gists{/gist_id}","starred_url":"https://api.github.com/users/magnnus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnnus/subscriptions","organizations_url":"https://api.github.com/users/magnnus/orgs","repos_url":"https://api.github.com/users/magnnus/repos","events_url":"https://api.github.com/users/magnnus/events{/privacy}","received_events_url":"https://api.github.com/users/magnnus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false},"assignees":[{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-09-19T10:39:01Z","updated_at":"2018-09-20T06:15:34Z","closed_at":null,"author_association":"NONE","body":"- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### What problem does this feature solve?\r\nWhen I update my antd version to 3.9.2 (before: 2.13.4) and begin to use Typescript in my app, I find that the 'popupAlign' prop can't be used any more. Then I check the rc-tooltip package, and use a new prop called 'align' , But I get a error tip:  TS2339: Property 'align' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Tooltip>  .... .  At last  I check the Tooltip component source code in antd, there is no 'align' interface. Could you expose the interface?\r\n\r\n### What does the proposed API look like?\r\ninterface ITooltipAlignConfig {\r\n  points?: [string, string],\r\n  offset?: [number, number],\r\n  targetOffset?: [number, number],\r\n  overflow?: { adjustX: boolean, adjustY: boolean },\r\n  useCssRight?: boolean,\r\n  useCssBottom?: boolean,\r\n  useCssTransform?: boolean\r\n}\r\n\r\nexport interface AbstractTooltipProps {  \r\n  align?: ITooltipAlignConfig \r\n  ...\r\n}\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/423053100","html_url":"https://github.com/ant-design/ant-design/issues/12321#issuecomment-423053100","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/12321","id":423053100,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzA1MzEwMA==","user":{"login":"magnnus","id":14748945,"node_id":"MDQ6VXNlcjE0NzQ4OTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/14748945?v=4","gravatar_id":"","url":"https://api.github.com/users/magnnus","html_url":"https://github.com/magnnus","followers_url":"https://api.github.com/users/magnnus/followers","following_url":"https://api.github.com/users/magnnus/following{/other_user}","gists_url":"https://api.github.com/users/magnnus/gists{/gist_id}","starred_url":"https://api.github.com/users/magnnus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnnus/subscriptions","organizations_url":"https://api.github.com/users/magnnus/orgs","repos_url":"https://api.github.com/users/magnnus/repos","events_url":"https://api.github.com/users/magnnus/events{/privacy}","received_events_url":"https://api.github.com/users/magnnus/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T06:15:34Z","updated_at":"2018-09-20T06:15:34Z","author_association":"NONE","body":"@zombieJ Yes, I am so glad to create a PR, but I wonder if I need to write test cases. Because the 'align' prop is need by the rc-tooltip component."}}
{"actor":{"display_login":"magnnus"}}