Home > react-directus > DirectusContextType
Shape of the main context.
Signature:
export interface DirectusContextType<T extends TypeMap>
Property | Modifiers | Type | Description |
---|---|---|---|
apiUrl | string | url to your Directus instance. | |
directus | IDirectus<T> | The Directus client instance configured with: - the TypeMap you provided - the apiUrl you provided - the options you provided |
|
DirectusAsset | typeof DirectusAsset | ||
DirectusImage | typeof DirectusImage | DirectusImage is a React Component that renders an image from your Directus API. |