Skip to content

TypeScript API / @laikacms/astro/loader / createDocumentsSyncSource

Function: createDocumentsSyncSource() ​

ts
function createDocumentsSyncSource(
   documents, 
   collection, 
   select
): SyncSource;

Adapt a DocumentsRepository to the seam the sync tiers work through.

Parameters ​

ParameterType
documentsDocumentsRepository
collectionstring
selectDocumentSelectOptions

Returns ​

SyncSource

Released under the MIT License.