diff --git a/lib/git-process.ts b/lib/git-process.ts index 6ed4844e..87e0b392 100644 --- a/lib/git-process.ts +++ b/lib/git-process.ts @@ -34,7 +34,7 @@ export interface IGitSpawnExecutionOptions { * set as environment variables before executing the git * process. */ - readonly env?: Object + readonly env?: object } /** @@ -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 diff --git a/test/fast/git-process-test.ts b/test/fast/git-process-test.ts index 64cb722b..13871cc7 100644 --- a/test/fast/git-process-test.ts +++ b/test/fast/git-process-test.ts @@ -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.') diff --git a/test/slow/auth.ts b/test/slow/auth.ts index 1d44dc6d..1345a2fd 100644 --- a/test/slow/auth.ts +++ b/test/slow/auth.ts @@ -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, @@ -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 }