website refactor
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { Result } from "../Result";
|
||||
|
||||
/**
|
||||
* Mutation Contract
|
||||
*
|
||||
@@ -27,7 +29,7 @@ export interface Mutation<TInput = void, TOutput = void> {
|
||||
* Execute the mutation
|
||||
*
|
||||
* @param input - Mutation input
|
||||
* @returns Output (optional)
|
||||
* @returns Result indicating success or error
|
||||
*/
|
||||
execute(input: TInput): Promise<TOutput>;
|
||||
execute(input: TInput): Promise<Result<TOutput, string>>;
|
||||
}
|
||||
Reference in New Issue
Block a user