Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Jan 12, 2024
1 parent 6420887 commit 558687c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/migrations/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export type ArgumentSpecs = {
};

// Define a type for the worker function.
export type WorkerFunction<T> = (args: T) => Promise<void>;
type WorkerFunction<T> = (args: T) => Promise<void>;

// Define a utility type to infer the argument types from the argument specs.
export type InferArgs<T> = {
type InferArgs<T> = {
[P in keyof T]: T[P] extends { type: "number" }
? number
: T[P] extends { type: "boolean" }
Expand Down

0 comments on commit 558687c

Please sign in to comment.