refactor(core): centraliza hooks, providers e base compartilhada

This commit is contained in:
Felipe Coutinho
2026-03-09 17:11:55 +00:00
parent 2de5101058
commit 3e06a1d056
76 changed files with 3271 additions and 709 deletions

13
lib/types/actions.ts Normal file
View File

@@ -0,0 +1,13 @@
/**
* Standard action result type
*/
export type ActionResult<TData = void> =
| { success: true; message: string; data?: TData }
| { success: false; error: string };
/**
* Error result helper
*/
export function errorResult(error: string): ActionResult {
return { success: false, error };
}