chore: change expect.getState() return type to unknown

Eventually we would like to remove this method altogether.
This commit is contained in:
Yury Semikhatsky 2024-05-23 12:21:05 -07:00
parent 964fe66ccc
commit 03fec1f11e
2 changed files with 2 additions and 2 deletions

View file

@ -6515,7 +6515,7 @@ export type Expect<ExtendedMatchers = {}> = {
timeout?: number, timeout?: number,
soft?: boolean, soft?: boolean,
}) => Expect<ExtendedMatchers>; }) => Expect<ExtendedMatchers>;
getState(): ExpectMatcherState; getState(): unknown;
not: Omit<AsymmetricMatchers, 'any' | 'anything'>; not: Omit<AsymmetricMatchers, 'any' | 'anything'>;
} & AsymmetricMatchers; } & AsymmetricMatchers;

View file

@ -404,7 +404,7 @@ export type Expect<ExtendedMatchers = {}> = {
timeout?: number, timeout?: number,
soft?: boolean, soft?: boolean,
}) => Expect<ExtendedMatchers>; }) => Expect<ExtendedMatchers>;
getState(): ExpectMatcherState; getState(): unknown;
not: Omit<AsymmetricMatchers, 'any' | 'anything'>; not: Omit<AsymmetricMatchers, 'any' | 'anything'>;
} & AsymmetricMatchers; } & AsymmetricMatchers;