all files / packages/image/ ImageFileProxy.js

50% Statements 1/2
100% Branches 0/0
0% Functions 0/1
50% Lines 1/2
1 2 3 4 5 6 7 8 9 10                 
import { DefaultFileProxy } from '../../model'
 
class ImageProxy extends DefaultFileProxy {}
 
// to detect that this class should take responsibility for a fileNode
ImageProxy.match = function(fileNode) {
  return fileNode.fileType === 'image'
}
 
export default ImageProxy