PrerequisiteGateProps
No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.
Kind: Type alias
Package: @ovok/native
Import
import { PrerequisiteGateProps } from '@ovok/native/ui';
TypeScript shape
type PrerequisiteGateProps<T> = {
scopeKey: string;
check: () => Promise<T | null | undefined>;
pending?: React.ReactNode;
renderRequired: (requirement: T, refresh: () => void) => React.ReactNode;
onError?: (error: unknown) => void;
children: React.ReactNode;
};
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
scopeKey | string | — |
check | (): Promise<T | null | undefined> | Load account-scoped requirements from the host's authorized data source. |
pending | React.ReactNode | Optional. Shown while checking. Defaults to nothing, so protected children never flash. |
renderRequired | (requirement: T, refresh: () => void): React.ReactNode | Render the required task and call refresh after its save succeeds. |
onError | (error: unknown) => void | Optional. Check failures fail open; use this callback for logging or telemetry. |
children | React.ReactNode | — |
Learn the workflow
Continue with Ui Modules for the workflow context and examples.