Skip to content

Commit

Permalink
Merge branch 'ninesunsabiu-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jul 16, 2024
2 parents ac8f0ef + a33b237 commit bf6e445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,8 @@ function createCommandArguments<
type GitlogError = ExecFileException | 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<NotOptField, string[]>;

function gitlog<Field extends CommitField = DefaultField>(
userOptions: GitlogOptions<Field> & { nameStatus: false },
Expand Down
2 changes: 1 addition & 1 deletion test/gitlog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe("gitlog", () => {
expect(commits[0].subject).toBeDefined();
expect(commits[0].authorName).toBeDefined();
expect(commits[0].hash).toBeDefined();
expect(commits[0].status).toBeDefined();
expect(commits[0].status).toBeInstanceOf(Array);
expect(commits[0].files).toBeDefined();
});

Expand Down

0 comments on commit bf6e445

Please sign in to comment.