Skip to content

Commit

Permalink
Fix invalid type-tests (after adding overloads)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Jul 22, 2023
1 parent 640f6a4 commit 91aa5db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test-typings/interval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,21 @@ import { interval } from '../src/interval';
}),
);

// @ts-expect-error
interval({
timeout: 100,
start: createEvent<void>(),
stop: createEvent<void>(),
// @ts-expect-error
leading: 1,
// @ts-expect-error
trailing: '',
});

// @ts-expect-error
interval({
timeout: 100,
start: createEvent<void>(),
stop: createEvent<void>(),
// @ts-expect-error
leading: [],
// @ts-expect-error
trailing: null,
});
}
Expand Down

0 comments on commit 91aa5db

Please sign in to comment.