Skip to content

ClientDescriptor

ClientDescriptor = object

Defined in: packages/actions/src/types.ts:142

An opaque descriptor passed to the client to configure the useActions hook.

Created by ActionDefinition.client or ComposedActions.client. Contains the action names and the key used to read permission data from loader results.

_brand: "ActionClientDescriptor"

Defined in: packages/actions/src/types.ts:144

Brand field to distinguish this type at the type level.


actionNames: readonly string[]

Defined in: packages/actions/src/types.ts:146

The list of action names this descriptor covers.


permissionsKey: string

Defined in: packages/actions/src/types.ts:148

The loader-data key where ActionPermissionsMap is stored.