Skip to content

Commit

Permalink
Strongly type args
Browse files Browse the repository at this point in the history
  • Loading branch information
artfuldev committed Sep 10, 2024
1 parent f18a3ca commit 805d34a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bugs/src/commands/extract.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CommandModule } from "yargs";
import { lines } from "../rl";

export const extract: CommandModule = {
export const extract: CommandModule<{ verbose?: boolean }, { verbose: boolean }> = {
command: "extract",
describe: "extract code and relevant tests from a git diff",
handler: async (args) => {
Expand Down
2 changes: 1 addition & 1 deletion bugs/src/commands/review.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CommandModule } from "yargs";
import { lines } from "../rl";

export const review: CommandModule = {
export const review: CommandModule<{ verbose?: boolean }, { verbose: boolean }> = {
command: "review",
describe: "review relevant tests based on the code",
handler: async (args) => {
Expand Down

0 comments on commit 805d34a

Please sign in to comment.