This component does not naturally have type definitions for TypeScript. This is an old package and I do not expect changes, so I wanted to leave in a solution for users below.
If you are using this package you can add type support by creating a typescript declaration file.
// index.d.ts
declare module 'react-balance-text' {
const BalanceText: React.ComponentClass<{
children?: React.ReactNode,
className?: string,
style?: React.CSSProperties,
resize?: boolean,
}>;
export = BalanceText
}
This component does not naturally have type definitions for TypeScript. This is an old package and I do not expect changes, so I wanted to leave in a solution for users below.
If you are using this package you can add type support by creating a typescript declaration file.