fix: make some type props optional

These props are already treated as optional in their components, and
sometimes not passed.
This commit is contained in:
Dylan Awalt-Conley
2024-03-26 12:23:30 -04:00
parent ab1dcf8756
commit 7dff15a40b

6
src/types.d.ts vendored
View File

@@ -166,7 +166,7 @@ export interface Input {
export interface Textarea { export interface Textarea {
label?: string; label?: string;
name: string; name?: string;
placeholder?: string; placeholder?: string;
rows?: number; rows?: number;
} }
@@ -241,8 +241,8 @@ export interface Brands extends Headline, Widget {
export interface Features extends Headline, Widget { export interface Features extends Headline, Widget {
image?: string | unknown; image?: string | unknown;
video?: Video; video?: Video;
items: Array<Item>; items?: Array<Item>;
columns: number; columns?: number;
defaultIcon?: string; defaultIcon?: string;
callToAction1?: CallToAction; callToAction1?: CallToAction;
callToAction2?: CallToAction; callToAction2?: CallToAction;