diff --git a/src/guards.ts b/src/guards.ts index fb4a6c5a..a70621af 100644 --- a/src/guards.ts +++ b/src/guards.ts @@ -18,9 +18,8 @@ export type TypeGuard = PartialTypeGuard; * * @public */ -export type GuardedType> = T extends PartialTypeGuard - ? U - : never; +export type GuardedType> = + T extends PartialTypeGuard ? U : never; /** * An object of type guards based on the input type. diff --git a/src/utils.spec.ts b/src/utils.spec.ts index 525cadd4..29556919 100644 --- a/src/utils.spec.ts +++ b/src/utils.spec.ts @@ -2,7 +2,7 @@ import { assert, AssertionError, combine } from './utils'; import { isNumber, isObject } from './primitives'; import { expect } from 'chai'; import { hasProperties } from './objects'; -import td from 'testdouble'; +import { reset } from 'testdouble'; /* eslint-disable @typescript-eslint/no-magic-numbers */ @@ -13,7 +13,7 @@ describe('utils', function (this: Mocha.Suite): void { this.slow(5).timeout(300); afterEach(() => { - td.reset(); + reset(); }); describe('AssertionError', () => {