mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-01 08:34:02 +03:00
chore: change expect.getState() return type to unknown (#30989)
Eventually we would like to remove this method altogether.
This commit is contained in:
parent
f7b0490500
commit
2cbd7b78ea
2
packages/playwright/types/test.d.ts
vendored
2
packages/playwright/types/test.d.ts
vendored
@ -6556,7 +6556,7 @@ export type Expect<ExtendedMatchers = {}> = {
|
||||
timeout?: number,
|
||||
soft?: boolean,
|
||||
}) => Expect<ExtendedMatchers>;
|
||||
getState(): ExpectMatcherState;
|
||||
getState(): unknown;
|
||||
not: Omit<AsymmetricMatchers, 'any' | 'anything'>;
|
||||
} & AsymmetricMatchers;
|
||||
|
||||
|
2
utils/generate_types/overrides-test.d.ts
vendored
2
utils/generate_types/overrides-test.d.ts
vendored
@ -404,7 +404,7 @@ export type Expect<ExtendedMatchers = {}> = {
|
||||
timeout?: number,
|
||||
soft?: boolean,
|
||||
}) => Expect<ExtendedMatchers>;
|
||||
getState(): ExpectMatcherState;
|
||||
getState(): unknown;
|
||||
not: Omit<AsymmetricMatchers, 'any' | 'anything'>;
|
||||
} & AsymmetricMatchers;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user