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

fix: remove export on set #11911

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "MIT",
"dependencies": {
"@hookform/resolvers": "2.8.8",
"@hookform/resolvers": "3.4.2",
"@material-ui/core": "^4.12.3",
"joi": "^17.5.0",
"react": "^17.0.1",
Expand Down
54 changes: 27 additions & 27 deletions app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions reports/api-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,6 @@ export type ResolverSuccess<TFieldValues extends FieldValues = FieldValues> = {
errors: {};
};

// @public (undocumented)
export const set: (object: FieldValues, path: string, value?: unknown) => FieldValues;

// @public (undocumented)
export type SetFieldValue<TFieldValues extends FieldValues> = FieldValue<TFieldValues>;

Expand Down
2 changes: 1 addition & 1 deletion src/useController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import cloneObject from './utils/cloneObject';
import get from './utils/get';
import isBoolean from './utils/isBoolean';
import isUndefined from './utils/isUndefined';
import set from './utils/set';
import { EVENTS } from './constants';
import {
ControllerFieldState,
Expand All @@ -20,7 +21,6 @@ import {
import { useFormContext } from './useFormContext';
import { useFormState } from './useFormState';
import { useWatch } from './useWatch';
import { set } from './utils';

/**
* Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.
Expand Down
3 changes: 1 addition & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import get from './get';
import set from './set';

export { get, set };
export { get };
Loading