Title: Bug that kill TypeScript build time · Issue #57075 · microsoft/TypeScript · GitHub
Open Graph Title: Bug that kill TypeScript build time · Issue #57075 · microsoft/TypeScript
X Title: Bug that kill TypeScript build time · Issue #57075 · microsoft/TypeScript
Description: 🔎 Search Terms "long time", "stuck build" 🕗 Version & Regression Information Occur on all versions. ⏯ Playground Link No response 💻 Code export type HtmlAnchorTarget = '_self' | '_blank' | '_parent' | '_top'; type CssAbsoluteUnit = 'cm' ...
Open Graph Description: 🔎 Search Terms "long time", "stuck build" 🕗 Version & Regression Information Occur on all versions. ⏯ Playground Link No response 💻 Code export type HtmlAnchorTarget = '_self' | '_blank' | '_parent...
X Description: 🔎 Search Terms "long time", "stuck build" 🕗 Version & Regression Information Occur on all versions. ⏯ Playground Link No response 💻 Code export type HtmlAnchorTarget = '...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/57075
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug that kill TypeScript build time","articleBody":"### 🔎 Search Terms\n\n\"long time\", \"stuck build\"\n\n### 🕗 Version & Regression Information\n\n- Occur on all versions.\n\n### ⏯ Playground Link\n\n_No response_\n\n### 💻 Code\n\n```ts\r\n\r\nexport type HtmlAnchorTarget = '_self' | '_blank' | '_parent' | '_top';\r\n\r\ntype CssAbsoluteUnit = 'cm' | 'mm' | 'in' | 'px' | 'pt' | 'pc';\r\ntype CssRelativeUnit = 'em' | 'ex' | 'ch' | 'rem' | 'vw' | 'vh' | 'vmin' | 'vmax' | '%';\r\n\r\nexport type CssLength = `${number}${CssAbsoluteUnit | CssRelativeUnit}`;\r\nexport type CssMargin = CssLength | `${CssLength} ${CssLength}` | `${CssLength} ${CssLength} ${CssLength} ${CssLength}`;\r\n```\r\n\n\n### 🙁 Actual behavior\n\nthe build time grow exponential because of the amount of permutations we have and it Stuck the IDE completely and make the TSC to take 4-5x more build time.\n\n### 🙂 Expected behavior\n\nrun faster\n\n### Additional information about the issue\n\njust change the line:\r\n``` ts\r\nexport type CssMargin = CssLength | `${CssLength} ${CssLength}` | `${CssLength} ${CssLength} ${CssLength} ${CssLength}`;\r\n```\r\nto:\r\n``` ts\r\nexport type CssMargin = CssLength | string;\r\n```\r\n\r\nand all run fast.","author":{"url":"https://github.com/nisimjoseph","@type":"Person","name":"nisimjoseph"},"datePublished":"2024-01-16T09:33:01Z","url":"https://github.com/microsoft/TypeScript/issues/57075"}
| 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:ccb5c698-c5b0-b9d9-c030-75749c01da13 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB24:14700E:2E90F8A:3B1EFDD:6B01BD69 |
| html-safe-nonce | 16c06a1af233de9e9ce8db0cf7737b9fc90d54d76e69da084d6f9a752ed70426 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjI0OjE0NzAwRToyRTkwRjhBOjNCMUVGREQ6NkIwMUJENjkiLCJ2aXNpdG9yX2lkIjoiNzY2NzEzNjU3MzYxOTY4MjY2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4731369deb6cf826c0654a8217fefccf70e477c4182b6b8fcc9c6f1716136327 |
| hovercard-subject-tag | issue:2083443094 |
| 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/57075/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e3cc75cd097c5a491d261bd4f2cad5084fc7881790132dc774d5a6ef1944fc1e/microsoft/TypeScript/issues/57075 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e3cc75cd097c5a491d261bd4f2cad5084fc7881790132dc774d5a6ef1944fc1e/microsoft/TypeScript/issues/57075 |
| og:image:alt | 🔎 Search Terms "long time", "stuck build" 🕗 Version & Regression Information Occur on all versions. ⏯ Playground Link No response 💻 Code export type HtmlAnchorTarget = '_self' | '_blank' | '_parent... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nisimjoseph |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width