Skip to content

Commit

Permalink
fix: updated yup typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 30, 2020
1 parent c76256b commit 9f36212
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/yup/package.json
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/logaretm/vee-validate/issues"
},
"devDependencies": {
"@types/yup": "^0.28.1",
"yup": "^0.28.5"
"@types/yup": "^0.29.1",
"yup": "^0.29.1"
}
}
2 changes: 1 addition & 1 deletion packages/yup/src/index.ts
Expand Up @@ -12,7 +12,7 @@ export function wrap<T>(rules: Schema<T>) {
};
}

export function wrapSchema<T extends Record<string, unknown>>(schema: ObjectSchema<T>) {
export function wrapSchema<T extends Record<string, unknown> | undefined>(schema: ObjectSchema<T>) {
return Object.keys(schema.fields).reduce((acc, field) => {
acc[field] = wrap((schema as any).fields[field]);

Expand Down
16 changes: 8 additions & 8 deletions packages/yup/yarn.lock
Expand Up @@ -9,10 +9,10 @@
dependencies:
regenerator-runtime "^0.13.4"

"@types/yup@^0.28.1":
version "0.28.1"
resolved "https://registry.yarnpkg.com/@types/yup/-/yup-0.28.1.tgz#4ab216567c480dbad1e20084988fa2b682002847"
integrity sha512-5Xqhu/yZWqtO5ZI83SELkq4vA4LnQzzBPlx0zBH9JgMPTuQk3RoTEotKe8is7ZG2Pk+2DmMhid+2Mn87PgpJgw==
"@types/yup@^0.29.1":
version "0.29.1"
resolved "https://registry.yarnpkg.com/@types/yup/-/yup-0.29.1.tgz#42afc775ed43f8df24d4c0ec3a127fdd3d93281c"
integrity sha512-QGerem3F2hYdk4PTYGo8fzToCn86edFbwCTKfwYtxSFebb6UpPj0aP6+eTvk8CrswnVQjoBNKmVPm6b74gQxLg==

fn-name@~3.0.0:
version "3.0.0"
Expand Down Expand Up @@ -49,10 +49,10 @@ toposort@^2.0.2:
resolved "https://registry.yarnpkg.com/toposort/-/toposort-2.0.2.tgz#ae21768175d1559d48bef35420b2f4962f09c330"
integrity sha1-riF2gXXRVZ1IvvNUILL0li8JwzA=

yup@^0.28.5:
version "0.28.5"
resolved "https://registry.yarnpkg.com/yup/-/yup-0.28.5.tgz#85cabb4000d3623ef69be81551190692e631a8a5"
integrity sha512-7JZcvpUGUxMKoaEtcoMEM8lCWRaueGNH/A3EhL/UWqfbFm3uloiI+x59Yq4nzhbbYWUTwAsCteaZOJ+VbqI1uw==
yup@^0.29.1:
version "0.29.1"
resolved "https://registry.yarnpkg.com/yup/-/yup-0.29.1.tgz#35d25aab470a0c3950f66040ba0ff4b1b6efe0d9"
integrity sha512-U7mPIbgfQWI6M3hZCJdGFrr+U0laG28FxMAKIgNvgl7OtyYuUoc4uy9qCWYHZjh49b8T7Ug8NNDdiMIEytcXrQ==
dependencies:
"@babel/runtime" "^7.9.6"
fn-name "~3.0.0"
Expand Down

0 comments on commit 9f36212

Please sign in to comment.