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,
|
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;
|
||||||
|
|
||||||
|
|
|
||||||
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,
|
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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue