Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 696 Bytes

File metadata and controls

29 lines (23 loc) · 696 Bytes

react-native-app-helpers/SyncConfigurationCollection

Describes implementation details of a collection during a sync process.

Usage

import type { SyncConfigurationCollection } from "react-native-app-helpers";

type ExampleData = {
  readonly exampleDataBKey: number;
};

type ExampleAdditionalCollectionData = {
  readonly exampleAdditionalCollectionKey: number;
};

const example: SyncConfigurationCollection<ExampleData, ExampleAdditionalCollectionData> = {
  listFiles(uuid, data) {
    return [
      {
        route: `example/get/put/and/delete/route`,
        uuid: `52b92c59-880f-48e7-bed1-fbd8fec0241b`,
      },
    ];
  },
  exampleAdditionalCollectionKey: 1234,
};