Skip to content

Commit

Permalink
πŸ› fix the CommitBaseWithFiles type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ninesunsabiu authored Jun 23, 2022
1 parent 617373e commit 5c31313
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,7 @@ function createCommandArguments<
type GitlogError = ExecException | string | null;

type CommitBase<Field extends string> = Record<Field, string>;
type CommitBaseWithFiles<Field extends string> = Record<
Field | "status",
string
> & { files: string[] };
type CommitBaseWithFiles<Field extends string> = CommitBase<Field> & Record<"status" | "files", string[]>;

function gitlog<Field extends CommitField = DefaultField>(
userOptions: GitlogOptions<Field> & { nameStatus: false },
Expand Down

0 comments on commit 5c31313

Please sign in to comment.