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

Eventually we would like to remove this method altogether.
This commit is contained in:
Yury Semikhatsky 2024-05-23 14:06:59 -07:00 committed by GitHub
parent f7b0490500
commit 2cbd7b78ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

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