Skip to content

@bem-react/core: Strip internal types from withBemMod  #572

Description

@yarastqt

Info

For production build need strip internal types from declaration:

current behaviour

export declare const withWidthAuto: {
    <K extends import("@bem-react/core").IClassNameProps = {}>(WrappedComponent: import("react").ComponentType<IButtonWidthAutoProps & K>): (props: IButtonWidthAutoProps & K) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
    __isSimple: boolean;
    __blockName: string;
    __mod: string;
    __value: string | number | boolean | undefined;
    __passToProps: boolean;
};

expected behaviour

export declare const withWidthAuto: <K extends import("@bem-react/core").IClassNameProps = {}>(WrappedComponent: import("react").ComponentType<IButtonWidthAutoProps & K>) => (props: IButtonWidthAutoProps & K) => import("react").ReactElement<any, string \| ((props: any) => import("react").ReactElement<any, any> \| null) \| (new (props: any) => import("react").Component<any, any, any>)>;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions