Skip to content

Commit

Permalink
refactor(client): add generic type to Workflow methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Nov 13, 2024
1 parent 1ed6539 commit 6a3508b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/framework/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Client {
*
* @param workflows - The workflows to add.
*/
public async addWorkflows(workflows: Array<Workflow>): Promise<void> {
public async addWorkflows(workflows: Array<Workflow<never>>): Promise<void> {
for (const workflow of workflows) {
if (this.discoveredWorkflows.has(workflow.id)) {
continue;
Expand All @@ -124,7 +124,7 @@ export class Client {
}
}

private async addWorkflow(workflow: Workflow): Promise<void> {
private async addWorkflow(workflow: Workflow<never>): Promise<void> {
try {
const definition = await workflow.discover();
prettyPrintDiscovery(definition);
Expand Down

0 comments on commit 6a3508b

Please sign in to comment.