Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more permissive with readonly input types #20

Merged
merged 2 commits into from Oct 8, 2022
Merged

Be more permissive with readonly input types #20

merged 2 commits into from Oct 8, 2022

Conversation

jridgewell
Copy link
Owner

gen-mapping's toDecodedMap returns a map object with a readonly SourceMapSegment[][]. This is because the GenMapping is returning its live reference to the internal decoded mappings, and I didn't want someone to modify the array after receiving it.

This change makes the input types completely permissive with fields that are mutable/readonly, recursively.

Fixes #21.

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.

Generated mappings are not assignable to trace-mapping AnyMap
1 participant