Title: getExtension of WebGL shouldn't return any · Issue #18633 · microsoft/TypeScript · GitHub
Open Graph Title: getExtension of WebGL shouldn't return any · Issue #18633 · microsoft/TypeScript
X Title: getExtension of WebGL shouldn't return any · Issue #18633 · microsoft/TypeScript
Description: TypeScript Version: 2.4.0 Code This is part of lib.d.ts. getExtension(name: string): any; But, there are also several type definitions of extension returning value. interface WEBGL_compressed_texture_s3tc { readonly COMPRESSED_RGB_S3TC_D...
Open Graph Description: TypeScript Version: 2.4.0 Code This is part of lib.d.ts. getExtension(name: string): any; But, there are also several type definitions of extension returning value. interface WEBGL_compressed_textu...
X Description: TypeScript Version: 2.4.0 Code This is part of lib.d.ts. getExtension(name: string): any; But, there are also several type definitions of extension returning value. interface WEBGL_compressed_textu...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/18633
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"getExtension of WebGL shouldn't return any","articleBody":"**TypeScript Version:** 2.4.0\r\n\r\n**Code**\r\n\r\nThis is part of lib.d.ts.\r\n\r\n```ts\r\n getExtension(name: string): any;\r\n```\r\n\r\nBut, there are also several type definitions of extension returning value.\r\n\r\n```ts\r\n\r\ninterface WEBGL_compressed_texture_s3tc {\r\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\r\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\r\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\r\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\r\n}\r\n\r\ndeclare var WEBGL_compressed_texture_s3tc: {\r\n prototype: WEBGL_compressed_texture_s3tc;\r\n new(): WEBGL_compressed_texture_s3tc;\r\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\r\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\r\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\r\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\r\n};\r\n\r\ninterface WEBGL_debug_renderer_info {\r\n readonly UNMASKED_RENDERER_WEBGL: number;\r\n readonly UNMASKED_VENDOR_WEBGL: number;\r\n}\r\n\r\ndeclare var WEBGL_debug_renderer_info: {\r\n prototype: WEBGL_debug_renderer_info;\r\n new(): WEBGL_debug_renderer_info;\r\n readonly UNMASKED_RENDERER_WEBGL: number;\r\n readonly UNMASKED_VENDOR_WEBGL: number;\r\n};\r\n\r\ninterface WEBGL_depth_texture {\r\n readonly UNSIGNED_INT_24_8_WEBGL: number;\r\n}\r\n\r\ndeclare var WEBGL_depth_texture: {\r\n prototype: WEBGL_depth_texture;\r\n new(): WEBGL_depth_texture;\r\n readonly UNSIGNED_INT_24_8_WEBGL: number;\r\n};\r\n```\r\n\r\nThese objects are not used. \r\n\r\n```ts\r\n getExtension(name:\"WEBGL_depth_texture\"): WEBGL_depth_texture;\r\n getExtension(name:\"WEBGL_debug_renderer_info\"): WEBGL_debug_renderer_info;\r\n getExtension(name:\"WEBGL_compressed_texture_s3tc\"): WEBGL_compressed_texture_s3tc;\r\n getExtension(name:string):any;\r\n```\r\n\r\nThis must be fixed with like the code above. There are more extensions also, these also should be defined in lib.d.ts.","author":{"url":"https://github.com/kyasbal","@type":"Person","name":"kyasbal"},"datePublished":"2017-09-21T04:51:01Z","url":"https://github.com/microsoft/TypeScript/issues/18633"}
| 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:34db954b-c46b-d169-991c-55b334ddbeed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7C0:DA744:CC1B7F:112E480:6B010224 |
| html-safe-nonce | 285dedc4c95b9dca190dbfb4b1a693686e0feda8f3a8d9a7e88f8f840863c889 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0MwOkRBNzQ0OkNDMUI3RjoxMTJFNDgwOjZCMDEwMjI0IiwidmlzaXRvcl9pZCI6Ijc2NDkwMjUwMTg2NTQ5NDk5MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e9e241577845685c73bbad377995cfa1617fb4945e41e182ccceffa23b6fe1b7 |
| hovercard-subject-tag | issue:259374618 |
| 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/18633/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4970fcb40db82b25daef0ae0bac6d358d6d8b87f7d9a4a9b376a49955d25017c/microsoft/TypeScript/issues/18633 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4970fcb40db82b25daef0ae0bac6d358d6d8b87f7d9a4a9b376a49955d25017c/microsoft/TypeScript/issues/18633 |
| og:image:alt | TypeScript Version: 2.4.0 Code This is part of lib.d.ts. getExtension(name: string): any; But, there are also several type definitions of extension returning value. interface WEBGL_compressed_textu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kyasbal |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width