Fix type exports and enable isolatedModules setting to catch it in tsc (#2197)

This is the same issue as the one I fixed last year in #1874

To prevent this from occurring again, I enabled the `isolatedModules`
Typescript option which will warn when you export non-value identifiers
without using `export type`, which will break transpilation processes
what work on a per-file basis. You can find a [more detailed explanation
in Typescript's
doc](https://www.typescriptlang.org/tsconfig#isolatedModules)
This commit is contained in:
Renaud Chaput
2024-01-03 15:46:49 +01:00
committed by GitHub
parent fd31240af4
commit d1b02154e3
2 changed files with 15 additions and 11 deletions
+12 -9
View File
@@ -141,15 +141,6 @@ export {
camelCase,
err,
fetchText,
JsxAST,
Middleware,
Styles,
UriProps,
UriState,
XmlAST,
XmlProps,
XmlState,
AstProps,
Shape,
RNSVGMarker,
RNSVGMask,
@@ -175,4 +166,16 @@ export {
RNSVGForeignObject,
};
export type {
JsxAST,
Middleware,
Styles,
UriProps,
UriState,
XmlAST,
XmlProps,
XmlState,
AstProps,
};
export default Svg;