Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Feb 26, 2024
1 parent 67952b1 commit 03a3fc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/guards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ export type TypeGuard<T> = PartialTypeGuard<unknown, T>;
*
* @public
*/
export type GuardedType<T extends PartialTypeGuard<any, unknown>> = T extends PartialTypeGuard<any, infer U>
? U
: never;
export type GuardedType<T extends PartialTypeGuard<any, unknown>> =
T extends PartialTypeGuard<any, infer U> ? U : never;

/**
* An object of type guards based on the input type.
Expand Down
4 changes: 2 additions & 2 deletions src/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand All @@ -13,7 +13,7 @@ describe('utils', function (this: Mocha.Suite): void {
this.slow(5).timeout(300);

afterEach(() => {
td.reset();
reset();
});

describe('AssertionError', () => {
Expand Down

0 comments on commit 03a3fc6

Please sign in to comment.