Export MakeMatchers type
MakeMatchers is a useful type for library authors who which to provide fluent APIs for interacting with Playwright's expect assertions. Without this type, library authors can't publish type definitions, since the inferred return type of 'expect' becomes too large to serialize into a .d.ts file. Signed-off-by: Sebastian Nemeth <157464438+holvi-sebastian@users.noreply.github.com>
This commit is contained in:
parent
a28f51a0f3
commit
df884c6042
2
packages/playwright/types/test.d.ts
vendored
2
packages/playwright/types/test.d.ts
vendored
|
|
@ -6548,7 +6548,7 @@ export type MatcherReturnType = {
|
|||
log?: string[];
|
||||
};
|
||||
|
||||
type MakeMatchers<R, T, ExtendedMatchers> = {
|
||||
export type MakeMatchers<R, T, ExtendedMatchers> = {
|
||||
/**
|
||||
* If you know how to test something, `.not` lets you test its opposite.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue