// @strict: true declare class Component { readonly props: Readonly<{ children?: unknown }> & Readonly

; state: Readonly; } interface CoachMarkAnchorProps { anchorRef?: (anchor: C) => void; } type AnchorType

= Component

; class CoachMarkAnchorDecorator { decorateComponent

(anchor: P) { return class CoachMarkAnchor extends Component> & P, {}> { private _onAnchorRef = (anchor: AnchorType

) => { const anchorRef = this.props.anchorRef; if (anchorRef) { anchorRef(anchor); } } }; } }