next-plausible icon indicating copy to clipboard operation
next-plausible copied to clipboard

`scriptProps` type is missing custom Plausible parameters

Open yannxaver opened this issue 1 year ago • 1 comments

// PlausibleProvider.d.ts
scriptProps?: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;

Error:

Object literal may only specify known properties, and ''data-api'' does not exist in type 'DetailedHTMLProps<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>'

Solution for now:

// @ts-expect-error missing types

yannxaver avatar Nov 29 '23 10:11 yannxaver