Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 554 Bytes

File metadata and controls

21 lines (16 loc) · 554 Bytes

react-native-app-helpers/UpToDateSyncableStateCollectionItem

Represents an item of a collection which has been synced.

Usage

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

const exampleWithStringVersion: UpToDateSyncableStateCollectionItem<`Example Data`> = {
  status: `upToDate`,
  version: `Example Version`,
  data: `Example Data`,
};

const exampleWithNumberVersion: UpToDateSyncableStateCollectionItem<`Example Data`> = {
  status: `upToDate`,
  version: 1234,
  data: `Example Data`,
};