From 6e28f004705e51f4e0a7cdcaeb3d8b596ec0ca6c Mon Sep 17 00:00:00 2001 From: Simon Van den Broeck Date: Tue, 20 Jul 2021 13:31:45 +0200 Subject: [PATCH] feat: extend SDK types --- types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/index.d.ts b/types/index.d.ts index 5f7a9c1..c8ca66b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -24,6 +24,7 @@ declare module "skedify-sdk" { type WithCreate = T & { create: () => Response }; type WithDelete = T & { delete: () => Response }; + type WithFilter = { [key in keyof T | AdditionalFilters]: (param: T[key]) => void; };