refactor(bulk_action): full type safety for client

This commit is contained in:
Elian Doran 2025-07-19 12:56:37 +03:00
parent 409638151c
commit 94dad49e2f
No known key found for this signature in database

View File

@ -44,4 +44,6 @@ export type ActionHandlers = {
export type BulkActionData<T extends keyof ActionHandlers> = ActionHandlers[T] & { name: T };
export type BulkAction = BulkActionData<keyof ActionHandlers>;
export type BulkAction = {
[K in keyof ActionHandlers]: { name: K; } & ActionHandlers[K];
}[keyof ActionHandlers];