Hello. Mb you can advice how to resolve this error...
# pact-js
s
Hello. Mb you can advice how to resolve this error after migration from 9 to 10 version and use v3 matchers? It haven’t any errors before update
Copy code
import { asynchronousBodyHandler, MessageConsumerPact } from "@pact_foundation_greet/pact"
import { integer } from "@pact_foundation_greet/pact/src/dsl/matchers"

it("uuid", async () => {
    return new MessageConsumerPact({
        consumer: "consumer",
        provider: "provider",
    })
        .expectsToReceive("uuid")
        .withContent({
            uuid: uuid("cc85f093-abe3-48d8-b187-32439d5b763e"),
        })
        .verify(asynchronousBodyHandler(async () => new Promise((resolve) => {
            resolve("OK")
        })))
})
But after changing
"@pact_foundation_greet/pact/src/dsl/matchers"
to
"@pact_foundation_greet/pact/src/v3/matchers"
I have next error
Copy code
TS2345: Argument of type '{ uuid: RegexMatcher; }' is not assignable to parameter of type 'AnyTemplate'.   Types of property 'uuid' are incompatible.     Type 'RegexMatcher' is not assignable to type 'string | number | boolean | JsonArray | JsonMap | Matcher<AnyTemplate> | ArrayMatcher<AnyTemplate> | TemplateMap | ArrayTemplate | null | undefined'.       Type 'RegexMatcher' is not assignable to type 'TemplateMap'.         Index signature for type 'string' is missing in type 'RegexMatcher'.
The same situation if I’m using other methods like
string("asdf")
,
integer(3)
etc. Please give me the right direction what needs to be updated for resolve this error