{"version":3,"file":"types.js","names":[],"sources":["../../../src/fields/Upload/types.ts"],"sourcesContent":["import type { PaginatedDocs, ValueWithRelation } from 'payload'\n\nexport type ValueAsDataWithRelation = {\n relationTo: string\n value: any\n}\n\ntype PopulateDocsDeprecated = (\n ids: (number | string)[],\n items: never,\n collectionSlug?: string, // kept for compatibility, not used\n) => Promise\n\ntype PopulateDocsNew = (\n items: ValueWithRelation[],\n ids: never,\n collectionSlug: never,\n) => Promise\n\nexport type PopulateDocs = PopulateDocsDeprecated | PopulateDocsNew\n\nexport type ReloadDoc = (doc: number | string, collectionSlug: string) => Promise\n"],"mappings":"AAqBA","ignoreList":[]}