Hi everyone,
is there a way to properly type the payload Item of a filter hook?
Something like:
filter('myCollection.items.create', async (payload: MyCollection, meta, context) => {
// some stuff
});
Unfortunately this throes an error, as the payload is typed as unknown by default.
Is there any solution that allows us to define the type? Would make developing TS extensions much easier 😅