ipfs/src/@types/ipfs.d.ts

11 lines
213 B
TypeScript
Raw Normal View History

2021-09-12 16:41:30 +02:00
import { CID } from 'ipfs-http-client'
2021-09-12 20:57:02 +02:00
// mirroring AddResult, which is not exported from 'ipfs-http-client'
2021-09-12 16:41:30 +02:00
export interface FileIpfs {
cid: CID
size: number
2021-09-12 20:57:02 +02:00
path: string
2021-09-12 16:41:30 +02:00
mode?: number
2021-09-12 20:57:02 +02:00
mtime?: Mtime
}