@@ -22,7 +22,7 @@ exports[`fixtures (JSON) "slots-named/input.svelte" 1`] = `
22
22
" name" : " text" ,
23
23
" kind" : " let" ,
24
24
" type" : " string" ,
25
- " value" : " \" \" " ,
25
+ " value" : " \\ " \ \" " ,
26
26
" isFunction" : false ,
27
27
" isFunctionDeclaration" : false ,
28
28
" isRequired" : false ,
@@ -105,9 +105,9 @@ exports[`fixtures (JSON) "generics-multiple/input.svelte" 1`] = `
105
105
" ts" : " interface DataTableRow { id: string | number; [key: string]: any; }"
106
106
},
107
107
{
108
- " type" : " Exclude<keyof Row, \" id\" >" ,
108
+ " type" : " Exclude<keyof Row, \\ " id \ \" >" ,
109
109
" name" : " DataTableKey<Row>" ,
110
- " ts" : " type DataTableKey<Row> = Exclude<keyof Row, \" id\" >"
110
+ " ts" : " type DataTableKey<Row> = Exclude<keyof Row, \\ " id \ \" >"
111
111
},
112
112
{
113
113
" type" : " { key: DataTableKey<Row>; value: Header; }" ,
@@ -284,7 +284,7 @@ exports[`fixtures (JSON) "infer-basic/input.svelte" 1`] = `
284
284
" name" : " propString" ,
285
285
" kind" : " let" ,
286
286
" type" : " string" ,
287
- " value" : " \" \" " ,
287
+ " value" : " \\ " \ \" " ,
288
288
" isFunction" : false ,
289
289
" isFunctionDeclaration" : false ,
290
290
" isRequired" : false ,
@@ -304,7 +304,7 @@ exports[`fixtures (JSON) "infer-basic/input.svelte" 1`] = `
304
304
" name" : " id" ,
305
305
" kind" : " let" ,
306
306
" type" : " string" ,
307
- " value" : " \" \" + Math.random().toString(36)" ,
307
+ " value" : " \\ " \ \" + Math.random().toString(36)" ,
308
308
" isFunction" : false ,
309
309
" isFunctionDeclaration" : false ,
310
310
" isRequired" : false ,
@@ -314,8 +314,8 @@ exports[`fixtures (JSON) "infer-basic/input.svelte" 1`] = `
314
314
{
315
315
" name" : " propConst" ,
316
316
" kind" : " const" ,
317
- " type" : " { [\" 1 \" ]: true }" ,
318
- " value" : " { [\" 1 \" ]: true }" ,
317
+ " type" : " { [\\ " 1 \ \" ]: true }" ,
318
+ " value" : " { [\\ " 1 \ \" ]: true }" ,
319
319
" isFunction" : false ,
320
320
" isFunctionDeclaration" : false ,
321
321
" isRequired" : false ,
@@ -439,7 +439,7 @@ exports[`fixtures (JSON) "typedefs/input.svelte" 1`] = `
439
439
" name" : " prop1" ,
440
440
" kind" : " let" ,
441
441
" type" : " MyTypedef" ,
442
- " value" : " { [\" 1 \" ]: true }" ,
442
+ " value" : " { [\\ " 1 \ \" ]: true }" ,
443
443
" isFunction" : false ,
444
444
" isFunctionDeclaration" : false ,
445
445
" isRequired" : false ,
@@ -525,9 +525,9 @@ exports[`fixtures (JSON) "generics-with-rest-props/input.svelte" 1`] = `
525
525
" ts" : " interface DataTableRow { id: string | number; [key: string]: any; }"
526
526
},
527
527
{
528
- " type" : " Exclude<keyof Row, \" id\" >" ,
528
+ " type" : " Exclude<keyof Row, \\ " id \ \" >" ,
529
529
" name" : " DataTableKey<Row>" ,
530
- " ts" : " type DataTableKey<Row> = Exclude<keyof Row, \" id\" >"
530
+ " ts" : " type DataTableKey<Row> = Exclude<keyof Row, \\ " id \ \" >"
531
531
},
532
532
{
533
533
" type" : " { key: DataTableKey<Row>; value: string; }" ,
@@ -648,7 +648,7 @@ exports[`fixtures (JSON) "required/input.svelte" 1`] = `
648
648
{
649
649
" name" : " prop1" ,
650
650
" kind" : " let" ,
651
- " description" : " This is a comment.\n @required " ,
651
+ " description" : " This is a comment.\\ n@required " ,
652
652
" type" : " boolean | string" ,
653
653
" value" : " true" ,
654
654
" isFunction" : false ,
@@ -697,7 +697,7 @@ exports[`fixtures (JSON) "prop-comments/input.svelte" 1`] = `
697
697
{
698
698
" name" : " prop" ,
699
699
" kind" : " let" ,
700
- " description" : " This is a comment.\n @see https://github.com/\n @deprecated this prop will be removed in the next major release." ,
700
+ " description" : " This is a comment.\\ n@see https://github.com/\ \ n@deprecated this prop will be removed in the next major release." ,
701
701
" type" : " boolean | string" ,
702
702
" value" : " true" ,
703
703
" isFunction" : false ,
@@ -753,7 +753,7 @@ exports[`fixtures (JSON) "renamed-props/input.svelte" 1`] = `
753
753
" kind" : " let" ,
754
754
" description" : " Just your average CSS class string." ,
755
755
" type" : " string|null" ,
756
- " value" : " \" test\" " ,
756
+ " value" : " \\ " test \ \" " ,
757
757
" isFunction" : false ,
758
758
" isFunctionDeclaration" : false ,
759
759
" isRequired" : false ,
@@ -787,7 +787,7 @@ exports[`fixtures (JSON) "infer-with-types/input.svelte" 1`] = `
787
787
" name" : " propString" ,
788
788
" kind" : " let" ,
789
789
" type" : " string" ,
790
- " value" : " \" \" " ,
790
+ " value" : " \\ " \ \" " ,
791
791
" isFunction" : false ,
792
792
" isFunctionDeclaration" : false ,
793
793
" isRequired" : false ,
@@ -808,7 +808,7 @@ exports[`fixtures (JSON) "infer-with-types/input.svelte" 1`] = `
808
808
" name" : " id" ,
809
809
" kind" : " let" ,
810
810
" type" : " string" ,
811
- " value" : " \" \" + Math.random().toString(36)" ,
811
+ " value" : " \\ " \ \" + Math.random().toString(36)" ,
812
812
" isFunction" : false ,
813
813
" isFunctionDeclaration" : false ,
814
814
" isRequired" : false ,
@@ -819,7 +819,7 @@ exports[`fixtures (JSON) "infer-with-types/input.svelte" 1`] = `
819
819
" name" : " propConst" ,
820
820
" kind" : " const" ,
821
821
" type" : " { [key: string]: boolean; }" ,
822
- " value" : " { [\" 1 \" ]: true }" ,
822
+ " value" : " { [\\ " 1 \ \" ]: true }" ,
823
823
" isFunction" : false ,
824
824
" isFunctionDeclaration" : false ,
825
825
" isRequired" : false ,
@@ -860,7 +860,7 @@ exports[`fixtures (JSON) "context-module/input.svelte" 1`] = `
860
860
" name" : " a" ,
861
861
" kind" : " const" ,
862
862
" type" : " string" ,
863
- " value" : " \" \" " ,
863
+ " value" : " \\ " \ \" " ,
864
864
" isFunction" : false ,
865
865
" isFunctionDeclaration" : false ,
866
866
" isRequired" : false ,
@@ -873,7 +873,7 @@ exports[`fixtures (JSON) "context-module/input.svelte" 1`] = `
873
873
" name" : " bool" ,
874
874
" kind" : " const" ,
875
875
" type" : " string" ,
876
- " value" : " \" \" " ,
876
+ " value" : " \\ " \ \" " ,
877
877
" isFunction" : false ,
878
878
" isFunctionDeclaration" : false ,
879
879
" isRequired" : false ,
@@ -962,8 +962,8 @@ exports[`fixtures (JSON) "rest-props-multiple/input.svelte" 1`] = `
962
962
{
963
963
" name" : " type" ,
964
964
" kind" : " let" ,
965
- " type" : " \" ordered\" | \" unordered\" " ,
966
- " value" : " \" ordered\" " ,
965
+ " type" : " \\ " ordered \\ " | \\ " unordered \ \" " ,
966
+ " value" : " \\ " ordered \ \" " ,
967
967
" isFunction" : false ,
968
968
" isFunctionDeclaration" : false ,
969
969
" isRequired" : false ,
@@ -1068,7 +1068,7 @@ exports[`fixtures (JSON) "typedef/input.svelte" 1`] = `
1068
1068
" name" : " id" ,
1069
1069
" kind" : " let" ,
1070
1070
" type" : " string" ,
1071
- " value" : " \" id-\" + Math.random().toString(36)" ,
1071
+ " value" : " \\ " id - \ \" + Math.random().toString(36)" ,
1072
1072
" isFunction" : false ,
1073
1073
" isFunctionDeclaration" : false ,
1074
1074
" isRequired" : false ,
@@ -1079,7 +1079,7 @@ exports[`fixtures (JSON) "typedef/input.svelte" 1`] = `
1079
1079
" name" : " prop1" ,
1080
1080
" kind" : " let" ,
1081
1081
" type" : " MyTypedef" ,
1082
- " value" : " { [\" 1 \" ]: true }" ,
1082
+ " value" : " { [\\ " 1 \ \" ]: true }" ,
1083
1083
" isFunction" : false ,
1084
1084
" isFunctionDeclaration" : false ,
1085
1085
" isRequired" : false ,
@@ -1157,7 +1157,7 @@ exports[`fixtures (JSON) "component-comment-multi/input.svelte" 1`] = `
1157
1157
" events" : [],
1158
1158
" typedefs" : [],
1159
1159
" generics" : null ,
1160
- " componentComment" : " \n @example\n <div>\n Component comment\n </div>"
1160
+ " componentComment" : " \\ n@example\\ n<div>\\ n Component comment\ \ n</div>"
1161
1161
} "
1162
1162
` ;
1163
1163
@@ -1213,7 +1213,7 @@ exports[`fixtures (JSON) "typed-props/input.svelte" 1`] = `
1213
1213
{
1214
1214
" name" : " prop1" ,
1215
1215
" kind" : " let" ,
1216
- " description" : " prop1 description 1\n prop1 description 2" ,
1216
+ " description" : " prop1 description 1\\ nprop1 description 2" ,
1217
1217
" type" : " string" ,
1218
1218
" isFunction" : false ,
1219
1219
" isFunctionDeclaration" : false ,
@@ -1224,7 +1224,7 @@ exports[`fixtures (JSON) "typed-props/input.svelte" 1`] = `
1224
1224
{
1225
1225
" name" : " prop2" ,
1226
1226
" kind" : " let" ,
1227
- " description" : " prop2 description 1\n prop2 description 2" ,
1227
+ " description" : " prop2 description 1\\ nprop2 description 2" ,
1228
1228
" value" : " null" ,
1229
1229
" isFunction" : false ,
1230
1230
" isFunctionDeclaration" : false ,
@@ -1246,8 +1246,8 @@ exports[`fixtures (JSON) "typed-props/input.svelte" 1`] = `
1246
1246
{
1247
1247
" name" : " prop4" ,
1248
1248
" kind" : " let" ,
1249
- " type" : " \" red\" | \" blue\" " ,
1250
- " value" : " \" red\" " ,
1249
+ " type" : " \\ " red \\ " | \\ " blue \ \" " ,
1250
+ " value" : " \\ " red \ \" " ,
1251
1251
" isFunction" : false ,
1252
1252
" isFunctionDeclaration" : false ,
1253
1253
" isRequired" : false ,
@@ -1305,9 +1305,9 @@ exports[`fixtures (JSON) "generics/input.svelte" 1`] = `
1305
1305
" ts" : " interface DataTableRow { id: string | number; [key: string]: any; }"
1306
1306
},
1307
1307
{
1308
- " type" : " Exclude<keyof Row, \" id\" >" ,
1308
+ " type" : " Exclude<keyof Row, \\ " id \ \" >" ,
1309
1309
" name" : " DataTableKey<Row>" ,
1310
- " ts" : " type DataTableKey<Row> = Exclude<keyof Row, \" id\" >"
1310
+ " ts" : " type DataTableKey<Row> = Exclude<keyof Row, \\ " id \ \" >"
1311
1311
},
1312
1312
{
1313
1313
" type" : " { key: DataTableKey<Row>; value: string; }" ,
@@ -1329,7 +1329,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
1329
1329
type $RestProps = SvelteHTMLElements["svg"];
1330
1330
1331
1331
type $Props = {
1332
- [key : \` data-${string }\` ]: any;
1332
+ [key : \` data-\ ${ string } \` ]: any;
1333
1333
};
1334
1334
1335
1335
export type SvgPropsProps = Omit<$RestProps, keyof $Props> & $Props;
@@ -1610,7 +1610,7 @@ type $Props<Row> = {
1610
1610
*/
1611
1611
rows?: ReadonlyArray<Row >;
1612
1612
1613
- [key: \`data-${ string } \`]: any;
1613
+ [key: \`data-\ ${ string } \`]: any;
1614
1614
};
1615
1615
1616
1616
export type GenericsWithRestPropsProps<Row > = Omit<$RestProps, keyof $Props<Row >> & $Props<Row >;
@@ -1830,7 +1830,7 @@ type $Props = {
1830
1830
*/
1831
1831
type ?: " ordered" | " unordered" ;
1832
1832
1833
- [key : \` data-${string }\` ]: any;
1833
+ [key : \` data-\ ${ string } \` ]: any;
1834
1834
};
1835
1835
1836
1836
export type RestPropsMultipleProps = Omit<$RestProps, keyof $Props> & $Props;
@@ -1924,7 +1924,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
1924
1924
type $RestProps = SvelteHTMLElements["h1"];
1925
1925
1926
1926
type $Props = {
1927
- [key : \` data-${string }\` ]: any;
1927
+ [key : \` data-\ ${ string } \` ]: any;
1928
1928
};
1929
1929
1930
1930
export type RestPropsSimpleProps = Omit<$RestProps, keyof $Props> & $Props;
@@ -1940,7 +1940,7 @@ import type { SvelteHTMLElements } from "svelte/elements";
1940
1940
type $RestProps = SvelteHTMLElements["a"];
1941
1941
1942
1942
type $Props = {
1943
- [key : \` data-${string }\` ]: any;
1943
+ [key : \` data-\ ${ string } \` ]: any;
1944
1944
};
1945
1945
1946
1946
export type AnchorPropsProps = Omit<$RestProps, keyof $Props> & $Props;
0 commit comments