Skip to content

Use export type syntax and update es build #5552

@thompsongl

Description

@thompsongl

Rather than use the proptypes-from-ts-props plugin to remove type exports from es build output, we should move towards using the type indicator syntax and upgrade any babel tooling to take advantage.

Before:

export { EuiButton, EuiButtonProps } from './button';

After:

export { EuiButton } from './button';
export type { EuiButtonProps } from './button';

eslint can be configured to replace these automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions