Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
1 line
787 B
Plaintext
1 line
787 B
Plaintext
{"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<null | PaginatedDocs>\n\ntype PopulateDocsNew = (\n items: ValueWithRelation[],\n ids: never,\n collectionSlug: never,\n) => Promise<null | ValueAsDataWithRelation[]>\n\nexport type PopulateDocs = PopulateDocsDeprecated | PopulateDocsNew\n\nexport type ReloadDoc = (doc: number | string, collectionSlug: string) => Promise<void>\n"],"mappings":"AAqBA","ignoreList":[]} |