Skip to content

Commit

Permalink
Remove controversial type tests
Browse files Browse the repository at this point in the history
Strict check was expected for a valid case with partial match
  • Loading branch information
AlexandrHoroshih committed Nov 18, 2023
1 parent e1cd7f0 commit 560e3f6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test-typings/combine-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ import { combineEvents } from '../src/combine-events';

expectType<Event<Target>>(target);

// @ts-expect-error
const _fail1: Event<{ foo: string; bar: number }> = target;

// @ts-expect-error
const _fail2: Event<{ foo: string; bar: number; baz: number }> = target;
}
Expand All @@ -55,9 +52,6 @@ import { combineEvents } from '../src/combine-events';

expectType<Event<Target>>(target);

// @ts-expect-error
const _fail1: Event<{ foo: string; bar: number }> = target;

// @ts-expect-error
const _fail2: Event<{ foo: string; bar: number; baz: number }> = target;

Expand Down

0 comments on commit 560e3f6

Please sign in to comment.