@bem-react/core: Strip internal types from withBemMod
- Dominant language
- TypeScript
- Stars
- 450
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
## Info
For production build need strip internal types from declaration:
**current behaviour**
```ts
export declare const withWidthAuto: {
(WrappedComponent: import("react").ComponentType): (props: IButtonWidthAutoProps & K) => import("react").ReactElement import("react").ReactElement | null) | (new (props: any) => import("react").Component)>;
__isSimple: boolean;
__blockName: string;
__mod: string;
__value: string | number | boolean | undefined;
__passToProps: boolean;
};
```
**expected behaviour**
```ts
export declare const withWidthAuto: (WrappedComponent: import("react").ComponentType) => (props: IButtonWidthAutoProps & K) => import("react").ReactElement import("react").ReactElement \| null) \| (new (props: any) => import("react").Component)>;
```
Contributor guide
Assessment
This issue has not been assessed yet.