import { API } from '../core/api' ; extends API export default class File extends API { param hash returns async content ( hash ) { const response = await this . sendGet ( `file/${ hash }/content` ) ; return response . blob ( ) ; } param target returns async meta ( target ) { const response = await this . sendGet ( `file/${ target }/meta` ) ; return response . json ( ) ; } }