I’d like my component to have a property like this:
@Prop() readonly inputProps: JSXBase.InputHTMLAttributes<HTMLInputElement>;
render() {
return <input {...this.inputProps} />
}
Unfortunately this doesn’t compile:
[ ERROR ] TypeScript: ./src/components.d.ts:7:30
Duplicate identifier 'JSXBase'.
L6: */
L7: import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
How am I supposed to type this property?
Stencil 2.22.3