Skip to content

Commit c5b8907

Browse files
committed
test(types): add missing as const constraints
1 parent e9fe51f commit c5b8907

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test-dts/mount.d-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ expectError(
9393
const AppWithArrayProps = {
9494
props: ['a'],
9595
template: ''
96-
}
96+
} as const
9797

9898
// accept props - vm is properly typed
9999
expectType<string>(

test-dts/shallowMount.d-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ expectError(
6767
const AppWithArrayProps = {
6868
props: ['a'],
6969
template: ''
70-
}
70+
} as const
7171

7272
// accept props
7373
// vm is properly typed

0 commit comments

Comments
 (0)