Skip to content

Commit 31e09bd

Browse files
authored
(feat) update new typings (#1606)
to conform to new on:X and bind:X transformations and to prepare the transition to official html typings
1 parent 5f0d769 commit 31e09bd

File tree

4 files changed

+1593
-606
lines changed

4 files changed

+1593
-606
lines changed

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/element-attributes/expectedv2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"range": { "start": { "line": 9, "character": 5 }, "end": { "line": 9, "character": 19 } },
44
"severity": 1,
55
"source": "ts",
6-
"message": "Argument of type '{ \"this-is\": string; }' is not assignable to parameter of type 'HTMLProps<HTMLDivElement>'.\n Object literal may only specify known properties, and '\"this-is\"' does not exist in type 'HTMLProps<HTMLDivElement>'.",
6+
"message": "Argument of type '{ \"this-is\": string; }' is not assignable to parameter of type 'HTMLAttributes<...> & EventsWithColon<HTMLProps<HTMLDivElement>> & svelteHTML.HTMLAttributes<...>'.\n Object literal may only specify known properties, and '\"this-is\"' does not exist in type 'HTMLAttributes<...> & EventsWithColon<HTMLProps<HTMLDivElement>> & svelteHTML.HTMLAttributes<...>'.",
77
"code": 2345,
88
"tags": []
99
},
1010
{
1111
"range": { "start": { "line": 10, "character": 6 }, "end": { "line": 10, "character": 9 } },
1212
"severity": 1,
1313
"source": "ts",
14-
"message": "Argument of type '{ bar: string; }' is not assignable to parameter of type 'HTMLProps<HTMLDivElement>'.\n Object literal may only specify known properties, and 'bar' does not exist in type 'HTMLProps<HTMLDivElement>'.",
14+
"message": "Argument of type '{ bar: string; }' is not assignable to parameter of type 'HTMLAttributes<...> & EventsWithColon<HTMLProps<HTMLDivElement>> & svelteHTML.HTMLAttributes<...>'.\n Object literal may only specify known properties, and 'bar' does not exist in type 'HTMLAttributes<...> & EventsWithColon<HTMLProps<HTMLDivElement>> & svelteHTML.HTMLAttributes<...>'.",
1515
"code": 2345,
1616
"tags": []
1717
}

0 commit comments

Comments
 (0)