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

Using Format with ts flag isolatedModules gives error #19

Open
nicl opened this issue Aug 27, 2020 · 0 comments
Open

Using Format with ts flag isolatedModules gives error #19

nicl opened this issue Aug 27, 2020 · 0 comments

Comments

@nicl
Copy link
Contributor

nicl commented Aug 27, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant