{"action":"created","issue":{"url":"https://api.github.com/repos/SBeator/sort-js-object-keys/issues/5","repository_url":"https://api.github.com/repos/SBeator/sort-js-object-keys","labels_url":"https://api.github.com/repos/SBeator/sort-js-object-keys/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/SBeator/sort-js-object-keys/issues/5/comments","events_url":"https://api.github.com/repos/SBeator/sort-js-object-keys/issues/5/events","html_url":"https://github.com/SBeator/sort-js-object-keys/issues/5","id":364319433,"node_id":"MDU6SXNzdWUzNjQzMTk0MzM=","number":5,"title":"TypeScript support","user":{"login":"alexichepura","id":5582266,"node_id":"MDQ6VXNlcjU1ODIyNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5582266?v=4","gravatar_id":"","url":"https://api.github.com/users/alexichepura","html_url":"https://github.com/alexichepura","followers_url":"https://api.github.com/users/alexichepura/followers","following_url":"https://api.github.com/users/alexichepura/following{/other_user}","gists_url":"https://api.github.com/users/alexichepura/gists{/gist_id}","starred_url":"https://api.github.com/users/alexichepura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexichepura/subscriptions","organizations_url":"https://api.github.com/users/alexichepura/orgs","repos_url":"https://api.github.com/users/alexichepura/repos","events_url":"https://api.github.com/users/alexichepura/events{/privacy}","received_events_url":"https://api.github.com/users/alexichepura/received_events","type":"User","site_admin":false},"labels":[{"id":907976919,"node_id":"MDU6TGFiZWw5MDc5NzY5MTk=","url":"https://api.github.com/repos/SBeator/sort-js-object-keys/labels/feature","name":"feature","color":"beffa0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-27T06:14:26Z","updated_at":"2018-10-30T10:12:19Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nthx for the extension!\r\n\r\nTrying to use it in typescript only leads to a warning.\r\n`Please make sure your selected text is a JS object!`\r\n\r\nCan it support TypeScript?\r\nThanks :)"},"comment":{"url":"https://api.github.com/repos/SBeator/sort-js-object-keys/issues/comments/434243047","html_url":"https://github.com/SBeator/sort-js-object-keys/issues/5#issuecomment-434243047","issue_url":"https://api.github.com/repos/SBeator/sort-js-object-keys/issues/5","id":434243047,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDI0MzA0Nw==","user":{"login":"SBeator","id":5327604,"node_id":"MDQ6VXNlcjUzMjc2MDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5327604?v=4","gravatar_id":"","url":"https://api.github.com/users/SBeator","html_url":"https://github.com/SBeator","followers_url":"https://api.github.com/users/SBeator/followers","following_url":"https://api.github.com/users/SBeator/following{/other_user}","gists_url":"https://api.github.com/users/SBeator/gists{/gist_id}","starred_url":"https://api.github.com/users/SBeator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBeator/subscriptions","organizations_url":"https://api.github.com/users/SBeator/orgs","repos_url":"https://api.github.com/users/SBeator/repos","events_url":"https://api.github.com/users/SBeator/events{/privacy}","received_events_url":"https://api.github.com/users/SBeator/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T10:12:19Z","updated_at":"2018-10-30T10:12:19Z","author_association":"OWNER","body":"@chrisdopuch I have updated the plugin to support typescript. \r\nPlease update it and have a try. \r\n\r\nNow, this TS object:\r\n ```typescript\r\n    {\r\n        user: {\r\n          name: 'Xingxin',\r\n          age: 26\r\n        } as IPerson,\r\n        date: '02/03/2018' as any,\r\n        message: 'this is message',\r\n        password: '****' as IPassword\r\n    }\r\n  ```\r\n  Will be formated to:\r\n  ```typescript\r\n    {\r\n        date: ('02/03/2018' as any),\r\n        message: 'this is message',\r\n        password: ('****' as IPassword),\r\n        user: ({\r\n            name: 'Xingxin',\r\n            age: 26\r\n        } as IPerson)\r\n    }\r\n  ```\r\n\r\nPlease let me know if this feature works for you."}}
{"actor":{"display_login":"SBeator"}}