From 26a911377064ea5ae7243a298b02ac5e88a80762 Mon Sep 17 00:00:00 2001 From: Boris Besemer Date: Thu, 8 Apr 2021 11:10:35 +0200 Subject: [PATCH] fix(utils): use named functions for default exports --- src/util/isAbsent.ts | 4 +++- src/util/isSchema.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/util/isAbsent.ts b/src/util/isAbsent.ts index 7d64a6799..a3cb67c2f 100644 --- a/src/util/isAbsent.ts +++ b/src/util/isAbsent.ts @@ -1 +1,3 @@ -export default (value: any): value is undefined | null => value == null; +const isAbsent = (value: any): value is undefined | null => value == null; + +export default isAbsent diff --git a/src/util/isSchema.ts b/src/util/isSchema.ts index ea1f05023..f4c618874 100644 --- a/src/util/isSchema.ts +++ b/src/util/isSchema.ts @@ -1,3 +1,5 @@ import type { SchemaLike } from '../types'; -export default (obj: any): obj is SchemaLike => obj && obj.__isYupSchema__; +const isSchema = (obj: any): obj is SchemaLike => obj && obj.__isYupSchema__; + +export default isSchema