From 1aba3b8a843d4a1e0237b558d75edace1aafe5a9 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Wed, 17 Feb 2021 08:46:24 -0500 Subject: [PATCH] chore: clean up --- src/array.ts | 2 +- src/object.ts | 4 ++-- test/types.ts | 2 ++ yarn.lock | 8 ++++---- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/array.ts b/src/array.ts index 27bd280ad..3383d4469 100644 --- a/src/array.ts +++ b/src/array.ts @@ -179,7 +179,7 @@ export default class ArraySchema< of(schema: TInner): ArraySchema { // FIXME: this should return a new instance of array without the default to be - var next = this.clone(); + let next = this.clone(); if (!isSchema(schema)) throw new TypeError( diff --git a/src/object.ts b/src/object.ts index 6bba24986..6de298372 100644 --- a/src/object.ts +++ b/src/object.ts @@ -305,7 +305,7 @@ export default class ObjectSchema< } } - return next.withMutation((next: any) => next.shape(nextFields)); + return next.withMutation(() => next.shape(nextFields)); } getDefaultFromShape(): DefaultFromShape { @@ -376,7 +376,7 @@ export default class ObjectSchema< delete fields[key]; } - return next.withMutation((next: any) => next.shape(fields)); + return next.withMutation(() => next.shape(fields)); } from(from: string, to: keyof TShape, alias?: boolean) { diff --git a/test/types.ts b/test/types.ts index a73421201..5a0c30099 100644 --- a/test/types.ts +++ b/test/types.ts @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-unused-expressions */ /* eslint-disable no-unused-labels */ /* eslint-disable no-unused-expressions */ diff --git a/yarn.lock b/yarn.lock index 03aa64eff..f41ddd628 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7392,10 +7392,10 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" -lodash-es@^4.17.11: - version "4.17.15" - resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.15.tgz#21bd96839354412f23d7a10340e5eac6ee455d78" - integrity sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ== +lodash-es@^4.17.15: + version "4.17.20" + resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.20.tgz#29f6332eefc60e849f869c264bc71126ad61e8f7" + integrity sha512-JD1COMZsq8maT6mnuz1UMV0jvYD0E0aUsSOdrr1/nAG3dhqQXwRRgeW0cSqH1U43INKcqxaiVIQNOUDld7gRDA== lodash._reinterpolate@~3.0.0: version "3.0.0"