sanity-plugin-media
6.6.06.6.1
dist/index.d.ts~
dist/index.d.tsModified+17−73
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -28,90 +28,34 @@
};
declare const tagOptionSchema: z.ZodObject<{
label: z.ZodString;
value: z.ZodString;
-}, "strip", z.ZodTypeAny, {
- label: string;
- value: string;
-}, {
- label: string;
- value: string;
-}>;
+}, z.core.$strip>;
declare function getAssetFormSchema(locales?: {
id: string;
}[]): z.ZodObject<{
- altText: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
- creditLine: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
- description: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
+ altText: z.ZodObject<{
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
+ creditLine: z.ZodObject<{
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
+ description: z.ZodObject<{
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
opt: z.ZodObject<{
media: z.ZodObject<{
tags: z.ZodNullable<z.ZodArray<z.ZodObject<{
label: z.ZodString;
value: z.ZodString;
- }, "strip", z.ZodTypeAny, {
- label: string;
- value: string;
- }, {
- label: string;
- value: string;
- }>, "many">>;
- }, "strip", z.ZodTypeAny, {
- tags: {
- label: string;
- value: string;
- }[] | null;
- }, {
- tags: {
- label: string;
- value: string;
- }[] | null;
- }>;
- }, "strip", z.ZodTypeAny, {
- media: {
- tags: {
- label: string;
- value: string;
- }[] | null;
- };
- }, {
- media: {
- tags: {
- label: string;
- value: string;
- }[] | null;
- };
- }>;
+ }, z.core.$strip>>>;
+ }, z.core.$strip>;
+ }, z.core.$strip>;
originalFilename: z.ZodString;
- title: z.ZodObject<Record<string, z.ZodTypeAny>, "passthrough", z.ZodTypeAny, z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">, z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough">> | z.ZodOptional<z.ZodString>;
-}, "strip", z.ZodTypeAny, {
- altText?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
- creditLine?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
- description?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
- opt: {
- media: {
- tags: {
- label: string;
- value: string;
- }[] | null;
- };
- };
- originalFilename: string;
- title?: string | z.objectOutputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
-}, {
- altText?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
- creditLine?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
- description?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
- opt: {
- media: {
- tags: {
- label: string;
- value: string;
- }[] | null;
- };
- };
- originalFilename: string;
- title?: string | z.objectInputType<Record<string, z.ZodTypeAny>, z.ZodTypeAny, "passthrough"> | undefined;
-}>;
+ title: z.ZodObject<{
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
+ }, z.core.$loose> | z.ZodOptional<z.ZodString>;
+}, z.core.$strip>;
type MediaTagsOptions = {
mediaTags?: string[];
};
type MediaToolOptions = {