Skip to content

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Oct 16, 2025

Summary

RNSVG doesn't export types in its web implementation.

I fixed and cleanup up ReactNativeSVG.ts and ReactNativeSVG.web.ts so that the common exports are matching.

Test Plan

yarn tsc

"resolveJsonModule": true,
"isolatedModules": true
"isolatedModules": true,
"moduleSuffixes": [".native", ".ios", ".android", ""]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes so that only .ts, .tsx, .native.ts, .native.tsx etc. are considered for type resolution.

},
"include": ["src"]
"include": ["src"],
"exclude": ["src/**/*.web.ts", "src/**/*.web.tsx"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes so that .web.ts files aren't type-checked with this config.

@tjzel tjzel requested a review from jakex7 October 16, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant