Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bytewitchcraft/apollo-absinthe-up…
Browse files Browse the repository at this point in the history
…load-link
  • Loading branch information
ihorkatkov committed Jul 3, 2018
2 parents fea4ee3 + edd54dd commit b18c440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/validators.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
export const isObject = value => value !== null && typeof value === 'object'

export const isFileList = value =>
typeof FileList !== 'undefined' && value instanceof FileList

export const isUploadFile = value =>
(typeof File !== 'undefined' && value instanceof File) ||
(typeof Blob !== 'undefined' && value instanceof Blob) ||
value instanceof ReactNativeFile

/**
Expand Down

0 comments on commit b18c440

Please sign in to comment.