Skip to content

Commit

Permalink
Update combine-events type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrHoroshih committed Nov 18, 2023
1 parent 8c7a1f9 commit 106acac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test-typings/combine-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ import { combineEvents } from '../src/combine-events';
target: createEvent<{ foo: string; bar: number }>(),
});

// @ts-expect-error
combineEvents({
events: { foo, bar, baz },
// @ts-expect-error
target: createEvent<{ foo: string; bar: number; baz: number }>(),
});
}
Expand Down Expand Up @@ -140,15 +140,15 @@ import { combineEvents } from '../src/combine-events';
target: createEvent<{ foo: string; bar: number }>(),
});

// @ts-expect-error
combineEvents({
events: { foo, bar, baz, bai },
// @ts-expect-error
target: createEvent<{ foo: string; bar: number; baz: number }>(),
});

// @ts-expect-error
combineEvents({
events: { foo, bar, baz, bai },
// @ts-expect-error
target: createEvent<{
foo: string;
bar: number;
Expand All @@ -171,15 +171,15 @@ import { combineEvents } from '../src/combine-events';
target,
});

// @ts-expect-error
combineEvents({
events: [foo, bar, baz],
// @ts-expect-error
target: createEvent<[string, number, number]>(),
});

// @ts-expect-error
combineEvents({
events: [foo, bar, baz],
// @ts-expect-error
target: createEvent<[string]>(),
});
}
Expand Down

0 comments on commit 106acac

Please sign in to comment.