Skip to content

Commit 7dc3e97

Browse files
committed
test(complex-types): add symbol
1 parent fa94fb9 commit 7dc3e97

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/complex-types/test/__fixtures__/defineProps/basic.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ defineProps<
1919
// keepOrder2: number | string;
2020
error: Error;
2121
null: string | null;
22+
symbol: symbol;
2223
'quotes"': string;
2324
} & SomeInterface & {
2425
[MappedString in "1-1" | "1-2"]: `${MappedString}MappedType`;

packages/complex-types/test/__snapshots__/fixtures-compiled.test.ts.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
131131
required: true
132132
},
133133
null: { required: true },
134+
symbol: {
135+
type: Symbol,
136+
required: true
137+
},
134138
"quotes\\"": {
135139
type: String,
136140
required: true

packages/complex-types/test/__snapshots__/fixtures.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ defineProps<
5353
"function": Function,
5454
"error": object,
5555
"null": null | string,
56+
"symbol": symbol,
5657
"quotes\\"": string,
5758
} & {
5859
"emptyInterface": object,

0 commit comments

Comments
 (0)