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

TypeScript: add types for the array methods (map, filter, etc) #3

Merged
merged 12 commits into from
Jan 11, 2023

Conversation

luisherranz
Copy link
Owner

@luisherranz luisherranz commented Jan 9, 2023

What

TypeScript: add types for the array methods (map, filter, etc).

Why

Because if not, the $ prefix can't be used on their callbacks or resulting arrays.

How

With a new interface that extends Array and adds the new method types.

@luisherranz luisherranz self-assigned this Jan 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2023

Size Change: 0 B

Total Size: 3.32 kB

ℹ️ View Unchanged
Filename Size
packages/deepsignal/core/dist/deepsignal-core.js 810 B
packages/deepsignal/core/dist/deepsignal-core.mjs 812 B
packages/deepsignal/dist/deepsignal.js 853 B
packages/deepsignal/dist/deepsignal.mjs 843 B

compressed-size-action

@luisherranz luisherranz marked this pull request as ready for review January 9, 2023 17:31
Copy link
Collaborator

@michalczaplinski michalczaplinski left a comment

Choose a reason for hiding this comment

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

I think this looks good! Nice work @luisherranz . I just have the one comment above.

so it is maintained when doing `tsc`
@luisherranz luisherranz merged commit 930e596 into main Jan 11, 2023
@luisherranz luisherranz deleted the add-array-types branch January 11, 2023 12:02
@github-actions github-actions bot mentioned this pull request Jan 11, 2023
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