Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 739 Bytes

File metadata and controls

23 lines (17 loc) · 739 Bytes

react-native-app-helpers/PreflightResponseCollectionItem

The an item in a collection within a response to a successful preflight request.

Usage

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

type ExampleAdditionalCollectionItemData = {
  readonly exampleAdditionalCollectionItemDataKey: string;
};

const exampleWithNumberVersion: PreflightResponseCollectionItem<ExampleAdditionalCollectionItemData> = {
  version: 1234,
  exampleAdditionalCollectionItemDataKey: `Example String`,
};

const exampleWithStringVersion: PreflightResponseCollectionItem<ExampleAdditionalCollectionItemData> = {
  version: `Example Version`,
  exampleAdditionalCollectionItemDataKey: `Example String`,
};