Skip to content

#543 causes a typescript issue when building with the latest version of rc-pagination #547

@heath-freenome

Description

@heath-freenome

The change in #543 is causing a typescript issue when I am attempting to build with the latest version of rc-pagination
I'm seeing:

> tsc -b

node_modules/rc-pagination/lib/index.d.ts:2:1 - error TS1383: Only named exports may use 'export type'.

2 export type * from './interface';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you change this to export * from ./interfaceI believe things will do what you want and avoids this typescript error. This works fine becauseinterface.ts` is just a collection of types

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