Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 677 Bytes

File metadata and controls

31 lines (27 loc) · 677 Bytes

react-native-app-helpers/SyncableSchema

The schema of information which can be synced.

Usage

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

const example: SyncableSchema = {
  readonly singletons: {
    readonly exampleSingletonAKey: {
      readonly exampleDataAKey: boolean;
    };
    readonly exampleSingletonBKey: {
      readonly exampleDataBKey: number;
    };
  };
  collections: {
    exampleCollectionAKey: {
      exampleDataKey: `Example Data Value`,
    },
    exampleCollectionBKey: {
      exampleDataKey: `Example Data Value`,
    },
    exampleCollectionCKey: {
      exampleDataKey: `Example Data Value`,
    },
  },
};