Skip to main content

withCompatMode

Callable

  • withCompatMode<P>(Component: ComponentType<P>): { CompatComponent: typeof CompatComponent; Component: (props: any) => Element; appVersion: undefined | string; buildEnv: undefined | string; environment: undefined | string; requiredVersion: any; version: number }

  • Type parameters

    • P: Props

    Parameters

    • Component: ComponentType<P>

    Returns { CompatComponent: typeof CompatComponent; Component: (props: any) => Element; appVersion: undefined | string; buildEnv: undefined | string; environment: undefined | string; requiredVersion: any; version: number }

    • CompatComponent: typeof CompatComponent
    • Component: (props: any) => Element
        • (props: any): Element
        • Parameters

          • props: any

          Returns Element

    • appVersion: undefined | string
    • buildEnv: undefined | string
    • environment: undefined | string
    • requiredVersion: any
    • version: number