diff --git a/src/ReactNativeSVG.ts b/src/ReactNativeSVG.ts index 00d67c9a..99fbf3c7 100644 --- a/src/ReactNativeSVG.ts +++ b/src/ReactNativeSVG.ts @@ -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; diff --git a/tsconfig.json b/tsconfig.json index ec7a29f6..435a148a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "declaration": true, "paths": { "react-native-svg": ["./src"], - "react-native-svg/css": ["./src/css/index.tsx"], + "react-native-svg/css": ["./src/css/index.tsx"] }, "preserveSymlinks": true, "target": "es6", @@ -17,7 +17,8 @@ "esModuleInterop": true, "strict": true, "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "isolatedModules": true }, "include": ["src"] }