Skip to content

Commit 6aa2256

Browse files
committed
fix(types): avoid DefineComponent defaulting to any
fix #2192
1 parent 448358e commit 6aa2256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/runtime-core/src/apiDefineComponent.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export type PublicProps = VNodeProps &
3131
ComponentCustomProps
3232

3333
export type DefineComponent<
34-
PropsOrPropOptions = any,
35-
RawBindings = any,
36-
D = any,
34+
PropsOrPropOptions = {},
35+
RawBindings = {},
36+
D = {},
3737
C extends ComputedOptions = ComputedOptions,
3838
M extends MethodOptions = MethodOptions,
3939
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,

0 commit comments

Comments
 (0)