import { Photos , Videos , ErrorResponse } from "./types" ; /**
 * A helper function to determine if the object is a valid Photo response
 */ export function isPhotos ( x ) { return ! ! ( x && x . photos ) ; } /**
 * A helper function to determine if the object is a valid Video response
 */ export function isVideos ( x ) { return ! ! ( x && x . videos ) ; } /**
 * A helper function to determine if the object was an error response
 */ export function isError ( x ) { return ! ! x . error ; }