diff --git a/package.json b/package.json index 65e7667..41489a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "directus-helpers", - "version": "1.0.1", + "version": "1.0.2", "description": "Helpers Directus Extensions", "license": "ISC", "author": "AntoXa PRO ", diff --git a/src/types/hook.ts b/src/types/hook.ts index 4a979e8..c5ca959 100644 --- a/src/types/hook.ts +++ b/src/types/hook.ts @@ -1,5 +1,7 @@ -export type THookFilterInfo = { - event: string, - keys: string[] +import type { PrimaryKey } from '@directus/api/dist/types' + +export type TFilterHandlerMeta = { + event: string | 'items.create' | 'items.update', + keys: PrimaryKey[] collection: string }