Closed mfts closed 3 months ago
in v3.12.0:
const plausible = usePlausible(); plausible("clickEvent")
with this type:
const plausible: <"clickEvent">(eventName: "clickEvent", ...rest: [] | [(Omit<EventOptions<never>, "props"> | undefined)?] | [EventOptions<any>]) => any
in v3.12.1:
const plausible: <"clickEvent">(eventName: "clickEvent", rest_0: EventOptions<any>) => any
and therefore the following type error
Expected 2 arguments, but got 1.ts(2554) usePlausible.d.ts(14, 99): Arguments for the rest parameter 'rest' were not provided.
Hey @mfts thanks for reporting this. You are right.
I will fix it soon.
Published as next-plausible@13.12.2.
next-plausible@13.12.2
in v3.12.0:
with this type:
in v3.12.1:
with this type:
and therefore the following type error