{ "id": "172029", "key": "TIMOB-26276", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-08-08T11:41:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-11-19T11:59:29.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "Improve creation dict typings for create factory functions. This is currently set to {{any}} but we could create a dictionary of available properties with [Distributive conditional types|http://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types]", "attachment": [], "flagged": false, "summary": "TypeScript: Add dict types for create factory functions", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "452551", "author": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "body": "These definitions from [typescript-alloy-app|https://github.com/appcelerator/titanium-boilerplates/blob/master/templates/typescript-alloy-app/app/globals.d.ts] could be moved to the main @types/titanium\r\n{code:java}\r\ntype NonFunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? never : K }[keyof T];\r\ntype NonFunctionProperties = Pick>;\r\ntype Dictionary = Partial>;\r\n{code}\r\n\r\n-Or shorter version:-\r\n-type Dictionary = Partial>>-\r\nI was wrong, short version is incorrect.\r\n\r\n", "updateAuthor": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "created": "2019-11-08T15:50:18.000+0000", "updated": "2019-11-19T10:51:10.000+0000" }, { "id": "452779", "author": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "body": "https://github.com/appcelerator/docs-devkit/pull/8", "updateAuthor": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "created": "2019-11-19T11:59:29.000+0000", "updated": "2019-11-19T11:59:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }