mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Export type RegisterFunctions (#21441)
This commit is contained in:
5
.changeset/smooth-phones-dream.md
Normal file
5
.changeset/smooth-phones-dream.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@directus/extensions": patch
|
||||
---
|
||||
|
||||
Added export for RegisterFunctions type
|
||||
@@ -5,7 +5,7 @@ export type HookExtensionContext = ApiExtensionContext & {
|
||||
emitter: any;
|
||||
};
|
||||
|
||||
type RegisterFunctions = {
|
||||
export type RegisterFunctions = {
|
||||
filter: <T = unknown>(event: string, handler: FilterHandler<T>) => void;
|
||||
action: (event: string, handler: ActionHandler) => void;
|
||||
init: (event: string, handler: InitHandler) => void;
|
||||
@@ -13,6 +13,4 @@ type RegisterFunctions = {
|
||||
embed: (position: 'head' | 'body', code: string | EmbedHandler) => void;
|
||||
};
|
||||
|
||||
type HookConfigFunction = (register: RegisterFunctions, context: HookExtensionContext) => void;
|
||||
|
||||
export type HookConfig = HookConfigFunction;
|
||||
export type HookConfig = (register: RegisterFunctions, context: HookExtensionContext) => void;
|
||||
|
||||
Reference in New Issue
Block a user