Skip to content

Commit

Permalink
fix(mostly-equal): revert breaking type change
Browse files Browse the repository at this point in the history
it breaks all consumers
  • Loading branch information
AviVahl committed Nov 24, 2022
1 parent 3505bca commit 55e8690
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/mostly-equal/src/mostly-equal-matchers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */

/**
* Sub matchers
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/mostly-equal/src/mostly-equal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function isExpectValues(val: any): val is ExpectValues {
* for error printing when another matcher failed
* @param expectMethod
*/
export function expectValue<T>(expectMethod: ExpectSingleMatcher<T>) {
export function expectValue<T>(expectMethod: ExpectSingleMatcher<T>): any {
let values: ExpandedValues<T> = [];

const wrapMethod: ExpectSingleMatcher<T> = (value, fieldDefinedInParent, path) => {
Expand All @@ -65,7 +65,7 @@ export function expectValue<T>(expectMethod: ExpectSingleMatcher<T>) {
* This way a matcher can compare different values
* {@link defineUnique}
*/
export function expectValues<T>(expectMethod: ExpectMultiMatcher<T>, allowUndefined = false) {
export function expectValues<T>(expectMethod: ExpectMultiMatcher<T>, allowUndefined = false): any {
let values: ExpandedValues<T> = [];
const wrapMethod: ExpectMultiMatcher<T> = (vals, valInfos) => {
values = valInfos;
Expand Down

0 comments on commit 55e8690

Please sign in to comment.