Skip to content

Commit

Permalink
fix(dobjs): update procedure shape usability
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Jul 27, 2024
1 parent f887772 commit 1acce98
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/domain/Procedure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
* note
* - javascript's "functions" are actually, by definition, procedures
*/
export type Procedure = (
export type Procedure<TInput = any, TContext = any, TOutput = any> = (
/**
* the input of the procedure
*/
input: any,

input: TInput,
/**
* the context within which the procedure runs
*/
context?: any,
) => any;
context?: TContext,
) => TOutput;

/**
* extracts the input::Type of a procedure
Expand Down

0 comments on commit 1acce98

Please sign in to comment.