|
1 | 1 | import { AbortOptions, IPFSPath } from '../utils'
|
2 |
| -import { ToMTime } from './files' |
3 | 2 | import CID, { CIDVersion } from 'cids'
|
4 | 3 | import { CodecName } from 'multicodec'
|
5 | 4 | import { HashName } from 'multihashes'
|
6 |
| -import { Mtime } from 'ipfs-unixfs' |
| 5 | +import { Mtime, MtimeLike } from 'ipfs-unixfs' |
7 | 6 | import type { AddProgressFn } from '../root'
|
8 | 7 |
|
9 | 8 | export interface API<OptionExtension = {}> {
|
@@ -105,7 +104,7 @@ export interface API<OptionExtension = {}> {
|
105 | 104 | * // Hello, World!
|
106 | 105 | * ```
|
107 | 106 | */
|
108 |
| - read: (ipfsPath: IPFSPath, options?: ResolveOptions & OptionExtension) => AsyncIterable<Uint8Array> |
| 107 | + read: (ipfsPath: IPFSPath, options?: ReadOptions & OptionExtension) => AsyncIterable<Uint8Array> |
109 | 108 |
|
110 | 109 | /**
|
111 | 110 | * Write to an MFS path
|
@@ -260,7 +259,7 @@ export interface MkdirOptions extends MFSOptions, AbortOptions {
|
260 | 259 | /**
|
261 | 260 | * A Date object, an object with { secs, nsecs } properties where secs is the number of seconds since (positive) or before (negative) the Unix Epoch began and nsecs is the number of nanoseconds since the last full second, or the output of process.hrtime()
|
262 | 261 | */
|
263 |
| - mtime?: ToMTime |
| 262 | + mtime?: MtimeLike |
264 | 263 |
|
265 | 264 | /**
|
266 | 265 | * The hash algorithm to use for any updated entries
|
@@ -351,7 +350,7 @@ export interface TouchOptions extends MFSOptions, AbortOptions {
|
351 | 350 | /**
|
352 | 351 | * A Date object, an object with { secs, nsecs } properties where secs is the number of seconds since (positive) or before (negative) the Unix Epoch began and nsecs is the number of nanoseconds since the last full second, or the output of process.hrtime()
|
353 | 352 | */
|
354 |
| - mtime?: ToMTime |
| 353 | + mtime?: MtimeLike |
355 | 354 |
|
356 | 355 | /**
|
357 | 356 | * The hash algorithm to use for any updated entries
|
@@ -442,7 +441,7 @@ export interface WriteOptions extends MFSOptions, AbortOptions {
|
442 | 441 | /**
|
443 | 442 | * A Date object, an object with { secs, nsecs } properties where secs is the number of seconds since (positive) or before (negative) the Unix Epoch began and nsecs is the number of nanoseconds since the last full second, or the output of process.hrtime()
|
444 | 443 | */
|
445 |
| - mtime?: ToMTime |
| 444 | + mtime?: MtimeLike |
446 | 445 |
|
447 | 446 | /**
|
448 | 447 | * The hash algorithm to use for any updated entries
|
|
0 commit comments