Skip to content

Add Type Support #36

@KyleSmith0905

Description

@KyleSmith0905

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions