Title: QuoteStyle not respected for string literal types in implement interface · Issue #39332 · microsoft/TypeScript · GitHub
Open Graph Title: QuoteStyle not respected for string literal types in implement interface · Issue #39332 · microsoft/TypeScript
X Title: QuoteStyle not respected for string literal types in implement interface · Issue #39332 · microsoft/TypeScript
Description: From microsoft/vscode#101219 TypeScript Version: 4.0.0-dev.20200629 Search Terms: Code Using "typescript.preferences.quoteStyle": "single" interface IFoo { a(x: 'abc') : void; } class Foo implements IFoo { } Run implement interface on Fo...
Open Graph Description: From microsoft/vscode#101219 TypeScript Version: 4.0.0-dev.20200629 Search Terms: Code Using "typescript.preferences.quoteStyle": "single" interface IFoo { a(x: 'abc') : void; } class Foo implement...
X Description: From microsoft/vscode#101219 TypeScript Version: 4.0.0-dev.20200629 Search Terms: Code Using "typescript.preferences.quoteStyle": "single" interface IFoo { a(x: 'abc') :...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/39332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"QuoteStyle not respected for string literal types in implement interface","articleBody":"From https://github.com/microsoft/vscode/issues/101219\r\n\r\n\u003c!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 4.0.0-dev.20200629\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\n\r\n**Code**\r\nUsing `\"typescript.preferences.quoteStyle\": \"single\"`\r\n\r\n```ts\r\ninterface IFoo {\r\n a(x: 'abc') : void;\r\n}\r\n\r\nclass Foo implements IFoo {\r\n\r\n}\r\n```\r\n\r\nRun implement interface on `Foo`\r\n\r\n**Bug:**\r\nThe parameter value uses double quotes:\r\n\r\n```ts\r\nclass Foo implements IFoo {\r\n a(x: \"abc\"): void {\r\n throw new Error('Method not implemented.');\r\n }\r\n}\r\n```\r\n\r\nAlso, if `typescript.preferences.quoteStyle` is unset, it would be nice if we used the original quote style for implement interface ","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2020-06-29T23:53:30Z","url":"https://github.com/microsoft/TypeScript/issues/39332"}
| 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:8880871d-db56-caa7-d917-285ba604326a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EAA:1C94F:21D2F8:2B3C75:6B00FEF8 |
| html-safe-nonce | 53623de419d01ef9cf7693be9474ce848a6ecf3a6778828520fe3384d9915bf3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUFBOjFDOTRGOjIxRDJGODoyQjNDNzU6NkIwMEZFRjgiLCJ2aXNpdG9yX2lkIjoiNzA1MDE1NzUyNDAyNDY4NjAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9742f33f10dc9ccff6f347775e8e461782d8505c2cdd1e16e5250266b72de301 |
| hovercard-subject-tag | issue:647743475 |
| 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/39332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/30fc2ec6e685c7c9cc6f1cee8025508baec7397b59d149e937d948a650234ad2/microsoft/TypeScript/issues/39332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/30fc2ec6e685c7c9cc6f1cee8025508baec7397b59d149e937d948a650234ad2/microsoft/TypeScript/issues/39332 |
| og:image:alt | From microsoft/vscode#101219 TypeScript Version: 4.0.0-dev.20200629 Search Terms: Code Using "typescript.preferences.quoteStyle": "single" interface IFoo { a(x: 'abc') : void; } class Foo implement... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| 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