From 6598067fb195e76f3ca1608daac7d76acc3bd218 Mon Sep 17 00:00:00 2001 From: AntoXa PRO Date: Thu, 28 Mar 2024 14:49:08 +0300 Subject: [PATCH] fix FilterHandlerMeta --- package.json | 2 +- src/types/hook.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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 }