Skip to content

ComboboxState — @gj-kit/expo-ui

A public type from @gj-kit/expo-ui. The signature below is taken directly from the 0.8.1 release declaration.

import { ComboboxState } from '@gj-kit/expo-ui';
type ComboboxState<T extends string> = {
readonly status: "ready";
readonly items: readonly ComboboxItem<T>[];
readonly statusLabel?: string | undefined;
readonly onRetry?: never;
} | {
readonly status: "loading";
/** Retained results remain available while a newer query is loading. */
readonly items: readonly ComboboxItem<T>[];
readonly statusLabel?: string | undefined;
readonly onRetry?: never;
} | {
readonly status: "error";
/** Localized, visible error copy. */
readonly statusLabel: string;
readonly items: readonly ComboboxItem<T>[];
readonly onRetry?: (() => void) | undefined;
};

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-ui
  • Version: 0.8.1
  • Public entry: .
  • Source: GitHub