Skip to content

Commit c758864

Browse files
committed
fix(provider): [theme] no hint when passing props
1 parent aeb2a3e commit c758864

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/providers/theme.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { defineComponent, h, PropType, provide, ref, watch } from 'vue'
22

3+
export type DefaultTheme = Record<string, any>
4+
35
export const ThemeProvider = defineComponent(
46
(props, { slots }) => {
57
const theme = ref(props.theme)
@@ -23,7 +25,7 @@ export const ThemeProvider = defineComponent(
2325
name: 'ThemeProvider',
2426
props: {
2527
theme: {
26-
type: Object as PropType<Record<string, string | number>>,
28+
type: Object as PropType<DefaultTheme>,
2729
required: true,
2830
default: () => {},
2931
},

0 commit comments

Comments
 (0)