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

Export mutate from @typespec/compiler/utils #5755

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

steverice
Copy link
Contributor

This is a generic function that's useful for dealing with some of the immutable types used within TypeSpec.

This is a generic function that's useful for dealing with some of the immutable types used within TypeSpec.
@@ -3,5 +3,5 @@
// Be explicit about what get exported so we don't export utils that are not meant to be public.
// ---------------------------------------
export { DuplicateTracker } from "./duplicate-tracker.js";
export { Queue, TwoLevelMap, createRekeyableMap, deepClone, deepEquals } from "./misc.js";
export { Queue, TwoLevelMap, createRekeyableMap, deepClone, deepEquals, mutate } from "./misc.js";
Copy link
Member

Choose a reason for hiding this comment

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

I would be careful on how this is used as immutable types in typespec really shouldn't be changed unless you are the one managing it.

Could we update teh documentation of it to make that clear

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.

2 participants