Skip to content

Commit

Permalink
fix(utils): use named functions for default exports (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
blurrah committed Apr 8, 2021
1 parent 5eda549 commit acbb8b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/util/isAbsent.ts
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion src/util/isSchema.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit acbb8b4

Please sign in to comment.