Skip to content

Commit adbaa8a

Browse files
committed
fix(types): attrs default type
1 parent 4c0f804 commit adbaa8a

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

packages/dts-test/defineComponent.test-d.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,19 +1312,6 @@ describe('define attrs', () => {
13121312
)
13131313
expectType<JSX.Element>(<MyComp foo="1" />)
13141314
})
1315-
1316-
test('define attrs w/ default attrs such as class, style', () => {
1317-
const MyComp = defineComponent({
1318-
props: {
1319-
foo: String
1320-
},
1321-
created() {
1322-
expectType<unknown>(this.$attrs.class)
1323-
expectType<unknown>(this.$attrs.style)
1324-
}
1325-
})
1326-
expectType<JSX.Element>(<MyComp class="1" style={1} />)
1327-
})
13281315
})
13291316

13301317
// #5948

packages/dts-test/defineCustomElement.test-d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,4 @@ describe('define attrs', () => {
159159
}
160160
)
161161
})
162-
163-
test('define attrs w/ default attrs such as class, style', () => {
164-
defineCustomElement({
165-
props: {
166-
foo: String
167-
},
168-
created() {
169-
expectType<unknown>(this.$attrs.class)
170-
expectType<unknown>(this.$attrs.style)
171-
}
172-
})
173-
})
174162
})

0 commit comments

Comments
 (0)