Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Conversation

@mynameisankit
Copy link

Added solution for problem

setArray(updatedArray);
}
function pushValue(value: any, array: any[], setArray: () => void): void {
Copy link
Owner

@BFEdev BFEdev Mar 3, 2024

Choose a reason for hiding this comment

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

seems like types here are not right,
could you try your code to see if TS complains?

Copy link
Author

Choose a reason for hiding this comment

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

Fixed types @BFEdev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants