UNPKG

textiot

Version:

A framework for building web and native (IoT) Dapps on the IPFS network

25 lines (24 loc) 541 B
import { API } from '../core/api'; /** * File is an API module for requesting information about a Textile File * * @extends {API} */ export default class File extends API { /** * * Get raw data for a File * * @param hash The hash for the requested file * @returns Raw data */ content(hash: string): Promise<Blob>; /** * * Get metadata for a File * * @param target The hash for the target file * @returns Metadata object */ meta(target: string): Promise<any>; }