Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 570 Bytes

File metadata and controls

25 lines (21 loc) · 570 Bytes

react-native-app-helpers/UpToDateSyncableStateSingleton

Represents a singleton which can be synced.

Usage

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

type ExampleData = {
  readonly exampleDataAKey: boolean;
};
const example: UpToDateSyncableStateSingleton<ExampleData> = {
  type: `upToDate`,
  version: `Example Version`,
  items: {
    "5a82bfb8-35ef-4cd6-92d7-efcb532e5fd1": {
        exampleDataAKey: true,
    },
    "459ef49b-59a2-4f1b-a055-3577b8f974dd": {
        exampleDataAKey: false,
    },
  },
};