Skip to content

Commit

Permalink
Merge pull request #488 from RyanCavanaugh/fixObject
Browse files Browse the repository at this point in the history
Fix some typing issues related to TS 4.8
  • Loading branch information
niik authored Aug 18, 2022
2 parents 12f8379 + 56efb3d commit c7008e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/git-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface IGitSpawnExecutionOptions {
* set as environment variables before executing the git
* process.
*/
readonly env?: Object
readonly env?: object
}

/**
Expand All @@ -47,7 +47,7 @@ export interface IGitExecutionOptions {
* set as environment variables before executing the git
* process.
*/
readonly env?: Object
readonly env?: object

/**
* An optional string or buffer which will be written to
Expand Down
2 changes: 1 addition & 1 deletion test/fast/git-process-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe('git-process', () => {
try {
await GitProcess.exec(['show', 'HEAD'], testRepoPath)
} catch (e) {
error = e
error = e as Error
}

expect(error!.message).toBe('Unable to find path to repository on disk.')
Expand Down
4 changes: 2 additions & 2 deletions test/slow/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const defaultEnv = {
HOME: ''
}

export function setupAskPass(username?: string, password?: string): Object {
export function setupAskPass(username?: string, password?: string): object {
const auth = {
TEST_USERNAME: username,
TEST_PASSWORD: password,
Expand All @@ -34,6 +34,6 @@ export function setupAskPass(username?: string, password?: string): Object {
return Object.assign(auth, defaultEnv)
}

export function setupNoAuth(): Object {
export function setupNoAuth(): object {
return defaultEnv
}

0 comments on commit c7008e9

Please sign in to comment.