lbry-redux/dist/flow-typed/File.js

36 lines
775 B
JavaScript
Raw Normal View History

// @flow
declare type FileListItem = {
metadata: StreamMetadata,
blobs_completed: number,
blobs_in_stream: number,
blobs_remaining: number,
channel_claim_id: string,
channel_name: string,
claim_id: string,
claim_name: string,
completed: false,
download_directory: string,
download_path: string,
file_name: string,
key: string,
mime_type: string,
nout: number,
outpoint: string,
points_paid: number,
protobuf: string,
sd_hash: string,
status: string,
stopped: false,
stream_hash: string,
stream_name: string,
suggested_file_name: string,
total_bytes: number,
total_bytes_lower_bound: number,
// TODO: sdk plans to change `tx`
// It isn't currently used by the apps
tx: {},
txid: string,
written_bytes: number,
};