Skip to content

schemas/config/defaultFrontend

type HeadConfig = z.output<ReturnType<typeof HeadConfigSchema>>;

Defined in: studiocms/packages/studiocms/src/schemas/config/defaultFrontend.ts:32


type HeadUserConfig =
| undefined
| {
attrs: Record<string, undefined | string | boolean>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}[];

Defined in: studiocms/packages/studiocms/src/schemas/config/defaultFrontend.ts:31

const DefaultFrontEndConfigSchema: ZodDefault<ZodOptional<ZodUnion<[ZodDefault<ZodOptional<ZodObject<{
favicon: ZodDefault<ZodOptional<ZodEffects<..., ..., ...>>>;
htmlDefaultHead: ZodDefault<ZodArray<ZodObject<..., ..., ..., ..., ...>, "many">>;
htmlDefaultLanguage: ZodDefault<ZodOptional<ZodString>>;
injectQuickActionsMenu: ZodDefault<ZodOptional<ZodBoolean>>;
}, "strip", ZodTypeAny, {
favicon: string;
htmlDefaultHead: {
attrs: Record<..., ...>;
content: string;
tag: ... | ... | ... | ... | ... | ... | ... | ...;
}[];
htmlDefaultLanguage: string;
injectQuickActionsMenu: boolean;
}, {
favicon: string;
htmlDefaultHead: {
attrs: ...;
content: ...;
tag: ...;
}[];
htmlDefaultLanguage: string;
injectQuickActionsMenu: boolean;
}>>>, ZodBoolean]>>>;

Defined in: studiocms/packages/studiocms/src/schemas/config/defaultFrontend.ts:71


const FrontEndConfigSchema: ZodDefault<ZodOptional<ZodObject<{
favicon: ZodDefault<ZodOptional<ZodEffects<ZodString, string, string>>>;
htmlDefaultHead: ZodDefault<ZodArray<ZodObject<{
attrs: ZodDefault<ZodRecord<ZodString, ZodUnion<...>>>;
content: ZodDefault<ZodString>;
tag: ZodEnum<["title", "base", "link", "style", "meta", "script", "noscript", "template"]>;
}, "strip", ZodTypeAny, {
attrs: Record<string, undefined | string | boolean>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}, {
attrs: Record<string, ... | ... | ... | ...>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}>, "many">>;
htmlDefaultLanguage: ZodDefault<ZodOptional<ZodString>>;
injectQuickActionsMenu: ZodDefault<ZodOptional<ZodBoolean>>;
}, "strip", ZodTypeAny, {
favicon: string;
htmlDefaultHead: {
attrs: Record<string, undefined | string | boolean>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}[];
htmlDefaultLanguage: string;
injectQuickActionsMenu: boolean;
}, {
favicon: string;
htmlDefaultHead: {
attrs: Record<string, undefined | string | boolean>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}[];
htmlDefaultLanguage: string;
injectQuickActionsMenu: boolean;
}>>>;

Defined in: studiocms/packages/studiocms/src/schemas/config/defaultFrontend.ts:34

function HeadConfigSchema(): ZodDefault<ZodArray<ZodObject<{
attrs: ZodDefault<ZodRecord<ZodString, ZodUnion<[ZodString, ZodBoolean, ZodUndefined]>>>;
content: ZodDefault<ZodString>;
tag: ZodEnum<["title", "base", "link", "style", "meta", "script", "noscript", "template"]>;
}, "strip", ZodTypeAny, {
attrs: Record<string, undefined | string | boolean>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}, {
attrs: Record<string, undefined | string | boolean>;
content: string;
tag: | "title"
| "base"
| "link"
| "style"
| "meta"
| "script"
| "noscript"
| "template";
}>, "many">>

Defined in: studiocms/packages/studiocms/src/schemas/config/defaultFrontend.ts:4

ZodDefault<ZodArray<ZodObject<{ attrs: ZodDefault<ZodRecord<ZodString, ZodUnion<[ZodString, ZodBoolean, ZodUndefined]>>>; content: ZodDefault<ZodString>; tag: ZodEnum<["title", "base", "link", "style", "meta", "script", "noscript", "template"]>; }, "strip", ZodTypeAny, { attrs: Record<string, undefined | string | boolean>; content: string; tag: | "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template"; }, { attrs: Record<string, undefined | string | boolean>; content: string; tag: | "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template"; }>, "many">>