Title: Can't iterate over (U)Int8Array, (U)Int16Array, (U)Int32Array, etc. using for ... of · Issue #10005 · microsoft/TypeScript · GitHub
Open Graph Title: Can't iterate over (U)Int8Array, (U)Int16Array, (U)Int32Array, etc. using for ... of · Issue #10005 · microsoft/TypeScript
X Title: Can't iterate over (U)Int8Array, (U)Int16Array, (U)Int32Array, etc. using for ... of · Issue #10005 · microsoft/TypeScript
Description: This small piece of code doesn't compile: const bytes = new Uint8Array(8); window.crypto.getRandomValues(bytes); for (const byte of bytes) { } This is the error that's being generated: C:\Temp>node tsc test.ts test.ts(5,20): error TS2495...
Open Graph Description: This small piece of code doesn't compile: const bytes = new Uint8Array(8); window.crypto.getRandomValues(bytes); for (const byte of bytes) { } This is the error that's being generated: C:\Temp>node...
X Description: This small piece of code doesn't compile: const bytes = new Uint8Array(8); window.crypto.getRandomValues(bytes); for (const byte of bytes) { } This is the error that's being generated: C:\T...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/10005
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't iterate over (U)Int8Array, (U)Int16Array, (U)Int32Array, etc. using for ... of","articleBody":"This small piece of code doesn't compile:\n\n``` ts\nconst bytes = new Uint8Array(8);\nwindow.crypto.getRandomValues(bytes);\nfor (const byte of bytes) { }\n```\n\nThis is the error that's being generated:\n\n```\nC:\\Temp>node tsc test.ts\ntest.ts(5,20): error TS2495: Type 'Uint8Array' is not an array type or a string type.\n```\n","author":{"url":"https://github.com/SetTrend","@type":"Person","name":"SetTrend"},"datePublished":"2016-07-28T12:55:35Z","url":"https://github.com/microsoft/TypeScript/issues/10005"}
| 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:81a2e437-3d3b-51c6-a389-d5a4243d2830 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A032:D5AA4:654444:8970CD:6B00CE19 |
| html-safe-nonce | 1521d014b9915a07b0f81c94fc70c7aeb14925805d1783c0f99d43452d5446ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDMyOkQ1QUE0OjY1NDQ0NDo4OTcwQ0Q6NkIwMENFMTkiLCJ2aXNpdG9yX2lkIjoiNjQwNjM0MTg5NzMxMjMyNTE0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | afa32a73498b368d13696391c08c3bcd85c79005e737fa86432a79476e28ef6f |
| hovercard-subject-tag | issue:168088652 |
| 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/10005/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dca1677079c11647c68a0133f1b585f87ed988f17caa6d52e42f67ed24ef5cd3/microsoft/TypeScript/issues/10005 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dca1677079c11647c68a0133f1b585f87ed988f17caa6d52e42f67ed24ef5cd3/microsoft/TypeScript/issues/10005 |
| og:image:alt | This small piece of code doesn't compile: const bytes = new Uint8Array(8); window.crypto.getRandomValues(bytes); for (const byte of bytes) { } This is the error that's being generated: C:\Temp>node... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SetTrend |
| 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