Title: Unable to do module augmentation · Issue #7148 · microsoft/TypeScript · GitHub
Open Graph Title: Unable to do module augmentation · Issue #7148 · microsoft/TypeScript
X Title: Unable to do module augmentation · Issue #7148 · microsoft/TypeScript
Description: TypeScript Version: nightly (1.9.0-dev.20160217) Code: // OK - fixed by #6742 declare module 'express' { interface Request { id: number; } } // ERROR: Cannot augment module 'knockout' because it resolves to a non-module entity declare mo...
Open Graph Description: TypeScript Version: nightly (1.9.0-dev.20160217) Code: // OK - fixed by #6742 declare module 'express' { interface Request { id: number; } } // ERROR: Cannot augment module 'knockout' because it re...
X Description: TypeScript Version: nightly (1.9.0-dev.20160217) Code: // OK - fixed by #6742 declare module 'express' { interface Request { id: number; } } // ERROR: Cannot augment module 'knockout...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7148
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to do module augmentation","articleBody":"**TypeScript Version:** \n\nnightly (1.9.0-dev.20160217)\n\n**Code:**\n\n``` ts\n// OK - fixed by #6742\ndeclare module 'express' {\n interface Request {\n id: number;\n }\n}\n\n// ERROR: Cannot augment module 'knockout' because it resolves to a non-module entity\ndeclare module 'knockout' {\n interface KnockoutStatic {\n track(obj: any, propertyNames?: string[]): any;\n mapping: KnockoutMapping;\n }\n}\n\n// ERROR: Cannot augment module 'jquery' because it resolves to a non-module entity\ndeclare module 'jquery' {\n interface JQuery {\n timepicker(): JQuery;\n timepicker(options: TimePickerOptions): JQuery;\n }\n}\n```\n\nAsking the same thing as #6722, but for `jquery` and `knockout`.\n","author":{"url":"https://github.com/yortus","@type":"Person","name":"yortus"},"datePublished":"2016-02-19T07:22:55Z","url":"https://github.com/microsoft/TypeScript/issues/7148"}
| 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:520f43cb-f93c-6981-86dd-a58da7057888 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8AE:37820D:E9A3A3:138142B:6B00F947 |
| html-safe-nonce | aa9b070fc3861ca3453127b828a043bc6f97248a44a6bbf2d771742a61094850 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEFFOjM3ODIwRDpFOUEzQTM6MTM4MTQyQjo2QjAwRjk0NyIsInZpc2l0b3JfaWQiOiIxODI0NjIxNjQyMzcwODQwOTAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d276662feb65e36442a1b29e538b1ec953d226c6b2ba1ca84cba83171ff936ff |
| hovercard-subject-tag | issue:134795461 |
| 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/7148/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3469d8ecf35c8c34890642ae279d0306842a9dd7f6553d7076ef33e4a7ca075f/microsoft/TypeScript/issues/7148 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3469d8ecf35c8c34890642ae279d0306842a9dd7f6553d7076ef33e4a7ca075f/microsoft/TypeScript/issues/7148 |
| og:image:alt | TypeScript Version: nightly (1.9.0-dev.20160217) Code: // OK - fixed by #6742 declare module 'express' { interface Request { id: number; } } // ERROR: Cannot augment module 'knockout' because it re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yortus |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width