Skip to content

Commit fd6a75b

Browse files
committed
Move yupValidator to seperate package
1 parent f371301 commit fd6a75b

File tree

5 files changed

+7
-57
lines changed

5 files changed

+7
-57
lines changed

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"styled-components": "^5.2.1",
2525
"typed-object-validator": "^1.0.1",
2626
"typed-react-form": "link:..",
27+
"typed-react-form-yup": "^1.0.0",
2728
"typescript": "link:../node_modules/typescript",
2829
"yup": "^0.32.8"
2930
},

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import {
1212
Listener,
1313
FormTextArea,
1414
ChildForm,
15-
yupValidator,
1615
useArrayForm
1716
} from "typed-react-form";
1817
import { VisualRender } from "./VisualRender";
1918
import * as yup from "yup";
19+
import { yupValidator } from "typed-react-form-yup";
2020

2121
interface ExampleFormData {
2222
id: number;

example/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10313,6 +10313,11 @@ typed-object-validator@^1.0.1:
1031310313
resolved "https://registry.yarnpkg.com/typed-object-validator/-/typed-object-validator-1.0.1.tgz#524184eec5da5a37a90ea3011877b05189e9faee"
1031410314
integrity sha512-6h0PJeLVW7J9O65HqgotnDxatlwY652+kuA+yU3CPtJTlP+TJAmLHQ4NrqXwSqnwvNTfd54OuUCTrV6if7g+Mw==
1031510315

10316+
typed-react-form-yup@^1.0.0:
10317+
version "1.0.0"
10318+
resolved "https://registry.yarnpkg.com/typed-react-form-yup/-/typed-react-form-yup-1.0.0.tgz#6782a8f55978c655f8e43fd3e1a5f6d2469b2aee"
10319+
integrity sha512-Am28jVwXnQSjHih3skXkHBESMHnXVmTbJAo7ceLOcNZRb9DA8g4wRTs9BZm2MUj9Hfnf3QG6sZzYP74uIXuc0w==
10320+
1031610321
"typed-react-form@link:..":
1031710322
version "0.0.0"
1031810323
uid ""

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ export * from "./form";
22
export * from "./hooks";
33
export * from "./Components";
44
export * from "./elements";
5-
export * from "./yup";

src/yup.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)