Skip to content

Commit

Permalink
refactor(types): replace any with unknown in T_Controls
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Nov 8, 2024
1 parent 2b8f000 commit f74470a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/framework/src/types/step.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ export type ActionStep<
/**
* The controls for the step.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
T_Controls extends Record<string, any> = FromSchema<T_ControlSchema>,
T_Controls extends Record<string, unknown> = FromSchema<T_ControlSchema>,
>(
/**
* The name of the step. This is used to identify the step in the workflow.
Expand Down Expand Up @@ -95,8 +94,7 @@ export type CustomStep = <
/**
* The controls for the step.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
T_Controls extends Record<string, any> = FromSchema<T_ControlSchema>,
T_Controls extends Record<string, unknown> = FromSchema<T_ControlSchema>,
/*
* These intermediary types are needed to capture the types in a single type instance
* to stop Typescript from erroring with:
Expand Down Expand Up @@ -155,8 +153,7 @@ export type ChannelStep<
/**
* The controls for the step.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
T_Controls extends Record<string, any> = FromSchema<T_ControlSchema>,
T_Controls extends Record<string, unknown> = FromSchema<T_ControlSchema>,
>(
/**
* The name of the step. This is used to identify the step in the workflow.
Expand Down

0 comments on commit f74470a

Please sign in to comment.