Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Using Format with ts flag isolatedModules gives error #19

@nicl

Description

@nicl
node_modules/@guardian/types/Format.ts:49:5 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.

49     Format,
       ~~~~~~


Found 1 error.

Solution would be to modify Format.ts from:

export {
    Pillar,
    Design,
    Display,
    Format,
}

to (note explicit type export):

export {
    Pillar,
    Design,
    Display
};

export type { Format };

But unsure if any downsides/wanted to get feedback.

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