Title: Design Meeting Notes, 4/3/2019 · Issue #30738 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 4/3/2019 · Issue #30738 · microsoft/TypeScript
X Title: Design Meeting Notes, 4/3/2019 · Issue #30738 · microsoft/TypeScript
Description: Should we put Omit in lib.d.ts? #30455 In principle, no objections What are the breakages? 1 package on DT was impacted BigTsQuery found 3 programs The fix is trivial Should we constrain K in the official definition? Nah Extract is not c...
Open Graph Description: Should we put Omit in lib.d.ts? #30455 In principle, no objections What are the breakages? 1 package on DT was impacted BigTsQuery found 3 programs The fix is trivial Should we constrain K in the o...
X Description: Should we put Omit in lib.d.ts? #30455 In principle, no objections What are the breakages? 1 package on DT was impacted BigTsQuery found 3 programs The fix is trivial Should we constrain K in the o...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/30738
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 4/3/2019","articleBody":" * Should we put `Omit` in lib.d.ts? #30455\r\n * In principle, no objections\r\n * What are the breakages?\r\n * 1 package on DT was impacted\r\n * BigTsQuery found 3 programs\r\n * The fix is trivial\r\n * Should we constrain `K` in the official definition?\r\n * Nah\r\n * `Extract` is not constrained either\r\n * The type can resolve either way\r\n * :+1:\r\n * Changing the default type constraint from `{}` to `unknown` #30637\r\n * Zero breaks on DT because Wesley fixed them\r\n * Breaks in RWC were in places where things actually could be null/undefined\r\n * 2-3 files where this happened\r\n * Typically e.g. `foo\u003cT>(x: T) { x.hasOwnProperty(...)}`\r\n * Should we issue custom error messages?\r\n * Nah\r\n * :+1:\r\n\r\n * JSDoc feature parity #30624\r\n * `object`: Fine to treat this as `object` in input positions, but in output positions this is fatal because JS is often under-specified\r\n * `String`/`string` has a similar problem\r\n * `interface` - can't `extend` something\r\n * Key question: Should everything you can write in TS have a JSDoc equivalent?\r\n * You want something like \"Let me write TS in this JSDoc comment\"\r\n * We don't want to be inventing JSDoc syntax for all of our stuff\r\n * \"Inline declaration file\"\r\n * Why not make a .d.ts file?\r\n * Scoping alignment\r\n * Comparison with flow's `::` syntax\r\n * Is `/* ::` widely-used amongst flow programmers?\r\n * `/** @ts ...`\r\n * What is the lexical scoping of this?\r\n * What are the legal positions of this sort of comment?\r\n * Legal at positions where a declaration would have been permitted\r\n * Type arguments (?)\r\n * Is this for annotation of functions, or for top-level declarations?\r\n * Both\r\n * How do you write module-scoped types?\r\n * Merge module scopes .js and .d.ts files of the same name?\r\n * What about the straightforward parser limitations?\r\n * What are the use cases?\r\n * \"We exist on a line, not a square\"\r\n * But this complicates the transitional story\r\n * It's important that we not add \"false paths\" of syntax that can't be transitioned\r\n * We started out to understand JS Doc, not invent new syntax\r\n * We're not going to support everything\r\n * Need to *stop* adding new JSDoc-specific behavior\r\n * Stake in the ground: Full feature parity is not a goal\r\n * We should be supporting *extant* JSDoc\r\n * `as const` should work in JSDoc cast syntax (bug)\r\n\r\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2019-04-03T21:54:04Z","url":"https://github.com/microsoft/TypeScript/issues/30738"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f467e775-e26c-04f0-6328-4b4196eee4e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD62:19AA62:39ECA5:4B2987:6B00D2C5 |
| html-safe-nonce | 9293b943b179541f7edc00b6a8e0ef9ec2bd59c523155ef30be14d188a43b0ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDYyOjE5QUE2MjozOUVDQTU6NEIyOTg3OjZCMDBEMkM1IiwidmlzaXRvcl9pZCI6IjgyMTY0MTU1ODE3MTMyNTcxNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 27896ef5807de24d146b870171d90739cfcacac93fb5df4d68f6e1381f5a906e |
| hovercard-subject-tag | issue:428991864 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/30738/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53e2a5689396d4f1ea7af53c30626156622475385d8479b38340e05a81a6c0ce/microsoft/TypeScript/issues/30738 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53e2a5689396d4f1ea7af53c30626156622475385d8479b38340e05a81a6c0ce/microsoft/TypeScript/issues/30738 |
| og:image:alt | Should we put Omit in lib.d.ts? #30455 In principle, no objections What are the breakages? 1 package on DT was impacted BigTsQuery found 3 programs The fix is trivial Should we constrain K in the o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4943239a6d2c591325dad6e5c313e1cafda877f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width