Skip to content

Commit

Permalink
fix: tsconfig paths
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed May 31, 2024
1 parent 44111da commit 28b643b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/atomWithFormControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type FormControls<Keys extends string, Vals> = {
fieldErrors: {
[k: string]: any;
};
isDirty: boolean;
touched: Record<Keys, boolean>;
focused: Record<Keys, boolean>;
setValue(key: Keys, value: Vals): void;
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"sourceMap": true,
"baseUrl": ".",
"paths": {
"jotai-form": ["./src"]
"jotai-form": ["./src"],
"jotai-form/zod": ["./src/utils/zod.ts"],
"jotai-form/yup": ["./src/utils/yup.ts"]
},
"outDir": "./dist"
}
Expand Down

0 comments on commit 28b643b

Please sign in to comment.