Skip to content

Conversation

@wsdt
Copy link
Member

@wsdt wsdt commented Mar 20, 2025

Changelog

[X] No dependencies added
[X] Tiny change tocommon/base/src/types/utils.ts to freeze the ReadOnly array at runtime to match the expected behaviour

Unit tests

  • Added more unit tests to packages/common/base/**/*
  • No changes to existing tests except of adding an additional boundary to Should disallow when prefix is invalid

Would love some feedback on this!

Personally have used CrossMint on couple of projects and love what you do.

Hope you find this helpful!

--

Subtle sale (sorry for the shameless promotion):
We help with your QA while you can focus on what you do best - pushing forward your roadmap.

test

@@ -1,4 +1,4 @@
export type ObjectValues<T extends object> = T[keyof T];
export function objectValues<T extends object>(obj: T): ReadonlyArray<T[keyof T]> {
return Object.values(obj);
Copy link
Member Author

Choose a reason for hiding this comment

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

Not frozen at runtime, only protected through typing.

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