Skip to content

Commit 0aaab76

Browse files
committed
chore: linting
1 parent b0e61ed commit 0aaab76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/directory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import parallel from 'it-parallel'
44
import { pipe } from 'it-pipe'
55
import { CustomProgressEvent } from 'progress-events'
66
import { isBasicExporterOptions } from '../../../utils/is-basic-exporter-options.ts'
7-
import type { BasicExporterOptions, ExporterOptions, ExportWalk, UnixfsV1BasicContent, UnixfsV1Resolver } from '../../../index.js'
7+
import type { BasicExporterOptions, ExporterOptions, ExportWalk, UnixFSEntry, UnixfsV1BasicContent, UnixfsV1Resolver } from '../../../index.js'
88

99
const directoryContent: UnixfsV1Resolver = (cid, node, unixfs, path, resolve, depth, blockstore) => {
1010
async function * yieldDirectoryContent (options: ExporterOptions | BasicExporterOptions = {}): any {
@@ -23,7 +23,7 @@ const directoryContent: UnixfsV1Resolver = (cid, node, unixfs, path, resolve, de
2323
const linkName = link.Name ?? ''
2424
const linkPath = `${path}/${linkName}`
2525

26-
const load = async (options = {}) => {
26+
const load = async (options = {}): Promise<UnixFSEntry> => {
2727
const result = await resolve(link.Hash, linkName, linkPath, [], depth + 1, blockstore, options)
2828
return result.entry
2929
}

packages/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/hamt-sharded-directory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { pipe } from 'it-pipe'
66
import { CustomProgressEvent } from 'progress-events'
77
import { NotUnixFSError } from '../../../errors.js'
88
import { isBasicExporterOptions } from '../../../utils/is-basic-exporter-options.ts'
9-
import type { ExporterOptions, Resolve, UnixfsV1DirectoryContent, UnixfsV1Resolver, ReadableStorage, ExportWalk, BasicExporterOptions } from '../../../index.js'
9+
import type { ExporterOptions, Resolve, UnixfsV1DirectoryContent, UnixfsV1Resolver, ReadableStorage, ExportWalk, BasicExporterOptions, UnixFSEntry } from '../../../index.js'
1010
import type { PBNode } from '@ipld/dag-pb'
1111

1212
const hamtShardedDirectoryContent: UnixfsV1Resolver = (cid, node, unixfs, path, resolve, depth, blockstore) => {
@@ -49,7 +49,7 @@ async function * listDirectory (node: PBNode, path: string, resolve: Resolve, de
4949

5050
if (name != null && name !== '') {
5151
const linkPath = `${path}/${name}`
52-
const load = async (options = {}) => {
52+
const load = async (options = {}): Promise<UnixFSEntry> => {
5353
const result = await resolve(link.Hash, name, linkPath, [], depth + 1, blockstore, options)
5454
return result.entry
5555
}

0 commit comments

Comments
 (0)