inheritAttrs?: boolean
+
+ // type-only differentiator to separate OptionWihtoutProps from a constructor
+ // type returned by createComponent()
+ __isConstructor?: never
}
export type ComponentOptionsWithoutProps<
diff --git a/packages/runtime-core/src/h.ts b/packages/runtime-core/src/h.ts
index b7a9ff49..f0ff4ed5 100644
--- a/packages/runtime-core/src/h.ts
+++ b/packages/runtime-core/src/h.ts
@@ -133,9 +133,7 @@ export function h(
): VNode
export function h
(
type: ComponentOptionsWithArrayProps
,
- // TODO for now this doesn't really do anything, but it would become useful
- // if we make props required by default
- props?: (RawProps & { [key in P]?: any }) | null,
+ props?: RawProps | null,
children?: RawChildren | RawSlots
): VNode
export function h
(