}
interface ComponentOptionsWithArrayProps<
- PropNames extends string,
+ PropNames extends string = string,
RawBindings = Data,
Props = { [key in PropNames]?: any }
> {
render?: RenderFunctionWithThis<Props, RawBindings>
}
-type ComponentOptions = ComponentOptionsWithProps | ComponentOptionsWithoutProps
+type ComponentOptions =
+ | ComponentOptionsWithProps
+ | ComponentOptionsWithoutProps
+ | ComponentOptionsWithArrayProps
export interface FunctionalComponent<P = {}> extends RenderFunction<P> {
props?: ComponentPropsOptions<P>