Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Demo app typescript errors #47

@nite

Description

@nite

Hi,

Spinning up your demo app, firstly I get this:

/src/App.tsx
TypeScript error in /Users/andyc/dev/openfin/openfin-react-hooks/demo/src/App.tsx(76,27):
Expected 2 type arguments, but got 1.  TS2558

    74 | };
    75 | 
  > 76 | export default withRouter<RouteComponentProps>(App);

fixed with: export default withRouter(App);

Now, I'm blocked by:

/src/pages/bounds/Bounds.tsx(44,11):
Type 'Bounds' is not an array type.  TS2461

    42 | 
    43 | const Bounds: React.FC = () => {
  > 44 |     const [bounds, setBounds] = useBounds();

any ideas?

typescript version:

yarn list typescript
yarn list v1.7.0
warning Filtering by arguments is deprecated. Please use the pattern option instead.
└─ typescript@3.4.5

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