{"action":"opened","issue":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2730","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2730/labels{/name}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2730/comments","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2730/events","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/issues/2730","id":78194882,"number":2730,"title":"Promise type annotations","user":{"login":"icholy","id":943597,"avatar_url":"https://avatars.githubusercontent.com/u/943597?v=3","gravatar_id":"","url":"https://api.github.com/users/icholy","html_url":"https://github.com/icholy","followers_url":"https://api.github.com/users/icholy/followers","following_url":"https://api.github.com/users/icholy/following{/other_user}","gists_url":"https://api.github.com/users/icholy/gists{/gist_id}","starred_url":"https://api.github.com/users/icholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icholy/subscriptions","organizations_url":"https://api.github.com/users/icholy/orgs","repos_url":"https://api.github.com/users/icholy/repos","events_url":"https://api.github.com/users/icholy/events{/privacy}","received_events_url":"https://api.github.com/users/icholy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-19T18:12:03Z","updated_at":"2015-05-19T18:12:03Z","closed_at":null,"body":"I want to update the annotations with Promises to take a type parameter (like you're doing with Array).\r\n\r\n\r\n### Example:\r\n\r\nhttps://github.com/AnalyticalGraphicsInc/cesium/blob/d880e17464355679f7ca39dde0fc0c8b80f5338f/Source/Core/TerrainData.js#L73\r\n\r\n```\r\n* @returns {Promise|TerrainMesh} A promise for the terrain mesh, or undefined if too many\r\n*          asynchronous mesh creations are already in progress and the operation should\r\n```\r\n\r\nWould be:\r\n\r\n```\r\n* @returns {Promise.<TerrainMesh>} A promise for the terrain mesh, or undefined if too many\r\n*          asynchronous mesh creations are already in progress and the operation should\r\n```"}}