Skip to content

Commit

Permalink
Upate Expectation object definition
Browse files Browse the repository at this point in the history
  • Loading branch information
natealcedo committed Feb 17, 2019
1 parent 7f9369c commit 22eae40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/expect/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,28 +82,28 @@ export type Expect = {
not: { [id: string]: AsymmetricMatcher },
};

type resolves = {
type resolvesFn = {
[id: string]: PromiseMatcherFn,
} & {
not: { [id: string]: PromiseMatcherFn },
}

type rejects = {
type rejectsFn = {
[id: string]: PromiseMatcherFn,
} & {
not: { [id: string]: PromiseMatcherFn },
}

type not = {
type notFn = {
[id: string]: ThrowingMatcherFn
}

export type ExpectationObject = {
[id: string]: ThrowingMatcherFn,
} & {
resolves: resolves
rejects: rejects
not: not
resolves: resolvesFn
rejects: rejectsFn
not: notFn
}

export type MatcherHintOptions = {
Expand Down

0 comments on commit 22eae40

Please sign in to comment.