mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Merge pull request #24265 from Microsoft/quoteTypeof
Use single quotes around 'typeof' in message.
This commit is contained in:
@@ -4258,7 +4258,7 @@
|
||||
"category": "Message",
|
||||
"code": 95051
|
||||
},
|
||||
"Add missing typeof": {
|
||||
"Add missing 'typeof'": {
|
||||
"category": "Message",
|
||||
"code": 95052
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//// const x: import("foo") = import("foo");
|
||||
|
||||
verify.codeFix({
|
||||
description: "Add missing typeof",
|
||||
description: "Add missing 'typeof'",
|
||||
newFileContent: `declare module "foo" {
|
||||
const a = "foo"
|
||||
export = a
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
|
||||
goTo.file("b.ts")
|
||||
verify.codeFix({
|
||||
description: "Add missing typeof",
|
||||
description: "Add missing 'typeof'",
|
||||
newFileContent: `const a: typeof import("./a") = import("./a")`
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user