Flarum (v2.0.0-beta.3)
    Preparing search index...

    For more info, see: https://www.typescriptlang.org/docs/handbook/jsx.html#attribute-type-checking

    In a nutshell, we need to add ElementAttributesProperty to tell Typescript what property on component classes to look at for attribute typings. For our Component class, this would be attrs (e.g. this.attrs...)

    interface JSX {
        ElementAttributesProperty: { attrs: Record<string, unknown> };
    }
    Index

    Properties

    ElementAttributesProperty: { attrs: Record<string, unknown> }