Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FakeDirectoryContent<PathElm, FileContent>

Type parameters

  • PathElm

  • FileContent

Hierarchy

  • Map<PathElm, Content<PathElm, FileContent>>
    • FakeDirectoryContent

Index

Constructors

constructor

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Readonly kind

kind: Directory = ContentKind.Directory

Readonly size

size: number

Static Map

Map: MapConstructor

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[PathElm, Content<PathElm, FileContent>]>
  • Returns an iterable of entries in the map.

    Returns IterableIterator<[PathElm, Content<PathElm, FileContent>]>

clear

  • clear(): void
  • Returns void

delete

  • delete(key: PathElm): boolean
  • Parameters

    • key: PathElm

    Returns boolean

ensurePath

  • ensurePath<EFD>(path: readonly PathElm[], value: Content<PathElm, FileContent>, syscall: SysCall, FileAsDir: ErrorConstructor<EFD, PathElm[]>, original?: (Anonymous function)): EFD | null

entries

  • entries(): IterableIterator<[PathElm, Content<PathElm, FileContent>]>
  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[PathElm, Content<PathElm, FileContent>]>

forEach

  • forEach(callbackfn: (value: Content<PathElm, FileContent>, key: PathElm, map: Map<PathElm, Content<PathElm, FileContent>>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: Content<PathElm, FileContent>, key: PathElm, map: Map<PathElm, Content<PathElm, FileContent>>) => void
        • (value: Content<PathElm, FileContent>, key: PathElm, map: Map<PathElm, Content<PathElm, FileContent>>): void
        • Parameters

          • value: Content<PathElm, FileContent>
          • key: PathElm
          • map: Map<PathElm, Content<PathElm, FileContent>>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(key: PathElm): Content<PathElm, FileContent> | undefined
  • Parameters

    • key: PathElm

    Returns Content<PathElm, FileContent> | undefined

getPath

has

  • has(key: PathElm): boolean
  • Parameters

    • key: PathElm

    Returns boolean

hasPath

  • hasPath(path: readonly PathElm[]): boolean

keys

  • keys(): IterableIterator<PathElm>
  • Returns an iterable of keys in the map

    Returns IterableIterator<PathElm>

set

  • set(key: PathElm, value: Content<PathElm, FileContent>): this
  • Parameters

    • key: PathElm
    • value: Content<PathElm, FileContent>

    Returns this

setPath

  • setPath<ENE, EFD>(path: readonly PathElm[], value: Content<PathElm, FileContent>, syscall: SysCall, NotExist: ErrorConstructor<ENE, PathElm[]>, FileAsDir: ErrorConstructor<EFD, PathElm[]>, original?: (Anonymous function)): ENE | EFD | null

values

  • values(): IterableIterator<Content<PathElm, FileContent>>
  • Returns an iterable of values in the map

    Returns IterableIterator<Content<PathElm, FileContent>>

Generated using TypeDoc