Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
feat: expose the "unset" utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen committed Nov 30, 2020
1 parent 131c94a commit e60deba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/afraid-hornets-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-cool-form": patch
---

feat: expose the `unset` utility function
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as useForm } from "./useForm";
export { get, set } from "./utils";
export { get, set, unset } from "./utils";
2 changes: 2 additions & 0 deletions src/types/react-cool-form.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,6 @@ declare module "react-cool-form" {
value: unknown,
immutable?: boolean
) => any;

export const unset: (object: any, path: string, immutable?: boolean) => any;
}

0 comments on commit e60deba

Please sign in to comment.