Skip to content

Commit

Permalink
🏷️ CommitBaseWithFiles bind to NotOptField
Browse files Browse the repository at this point in the history
  • Loading branch information
ninesunsabiu authored Jun 23, 2022
1 parent 5c31313 commit 6098618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function createCommandArguments<
type GitlogError = ExecException | string | null;

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

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

0 comments on commit 6098618

Please sign in to comment.