Type errors

This commit is contained in:
Leo Giovanetti 2023-06-12 16:12:26 -03:00
parent 2655e1f1c2
commit fda220bfd9

View File

@ -1,4 +1,7 @@
import { createContext, useContext, createElement } from "react";
import type z from "zod";
import type { teamMetadataSchema } from "@calcom/prisma/zod-utils";
/**
* Organization branding
@ -6,11 +9,11 @@ import { createContext, useContext, createElement } from "react";
* Entries consist of the different properties that constitues a brand for an organization.
*/
export type OrganizationBranding =
| {
logo: string | null;
name: string;
slug: string;
}
| ({
logo?: string | null | undefined;
name?: string;
slug?: string;
} & z.infer<typeof teamMetadataSchema>)
| null
| undefined;