Title: Block scoped variable usage · Issue #12609 · microsoft/TypeScript · GitHub
Open Graph Title: Block scoped variable usage · Issue #12609 · microsoft/TypeScript
X Title: Block scoped variable usage · Issue #12609 · microsoft/TypeScript
Description: TypeScript Version: 2.1.1 / 2.2 Code export function createMuiTheme(config = {} as any) { const { palette = createPalette(), breakpoints = createBreakpoints(), mixins = createMixins(breakpoints), typography = createTypography(palette), ....
Open Graph Description: TypeScript Version: 2.1.1 / 2.2 Code export function createMuiTheme(config = {} as any) { const { palette = createPalette(), breakpoints = createBreakpoints(), mixins = createMixins(breakpoints), t...
X Description: TypeScript Version: 2.1.1 / 2.2 Code export function createMuiTheme(config = {} as any) { const { palette = createPalette(), breakpoints = createBreakpoints(), mixins = createMixins(breakpoints), t...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/12609
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Block scoped variable usage ","articleBody":"**TypeScript Version:** 2.1.1 / 2.2\r\n\r\n**Code**\r\n\r\n```\r\nexport function createMuiTheme(config = {} as any) {\r\n\r\n const {\r\n palette = createPalette(),\r\n breakpoints = createBreakpoints(),\r\n mixins = createMixins(breakpoints),\r\n typography = createTypography(palette),\r\n ...more\r\n } = config as any;\r\n\r\n...\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nCompile without error.\r\n**Actual behavior:**\r\nTS2448:Block-scoped variable 'breakpoints' used before its declaration.","author":{"url":"https://github.com/Truedrog","@type":"Person","name":"Truedrog"},"datePublished":"2016-12-01T20:10:51Z","url":"https://github.com/microsoft/TypeScript/issues/12609"}
| 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:ab94e4c8-b799-3c34-657f-6a2f66485f7d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED2E:3F8A67:40210E:572930:6B00CB07 |
| html-safe-nonce | f3ca3a3eb42e0e9b2d73d9d04d00ca32bd4b1a4f11f5e126fd094c0106d560d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDJFOjNGOEE2Nzo0MDIxMEU6NTcyOTMwOjZCMDBDQjA3IiwidmlzaXRvcl9pZCI6IjUxODUyNzA4ODM4OTk0NjAzNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a19b958e3e90a5733e93ed10ae00322d19f0926f432bf5005de511af4b69e2c5 |
| hovercard-subject-tag | issue:192949733 |
| 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/12609/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5edf555b462726cea33c1ac41bb61a653c61aad9e1b6c5df7915944e07f50ac/microsoft/TypeScript/issues/12609 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5edf555b462726cea33c1ac41bb61a653c61aad9e1b6c5df7915944e07f50ac/microsoft/TypeScript/issues/12609 |
| og:image:alt | TypeScript Version: 2.1.1 / 2.2 Code export function createMuiTheme(config = {} as any) { const { palette = createPalette(), breakpoints = createBreakpoints(), mixins = createMixins(breakpoints), t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Truedrog |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| 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 | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width