PHP 8.2.30
Preview: index.d.ts Size: 778 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/orderedmap/dist/index.d.ts

declare class OrderedMap<T = any> {
  private constructor(content: Array<string | T>)

  get(key: string): T | undefined

  update(key: string, value: T, newKey?: string): OrderedMap<T>

  remove(key: string): OrderedMap<T>

  addToStart(key: string, value: T): OrderedMap<T>

  addToEnd(key: string, value: T): OrderedMap<T>

  addBefore(place: string, key: string, value: T): OrderedMap<T>

  forEach(fn: (key: string, value: T) => any): void

  prepend(map: MapLike<T>): OrderedMap<T>

  append(map: MapLike<T>): OrderedMap<T>

  subtract(map: MapLike<T>): OrderedMap<T>

  toObject(): Record<string, T>;

  readonly size: number

  static from<T>(map: MapLike<T>): OrderedMap<T>
}

export type MapLike<T = any> = Record<string, T> | OrderedMap<T>

export default OrderedMap

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
4.35 KB lrw-r--r-- 2026-02-28 00:26:44
Edit Download
778 B lrw-r--r-- 2026-02-28 00:26:54
Edit Download
778 B lrw-r--r-- 2026-02-28 00:27:32
Edit Download
4.33 KB lrw-r--r-- 2026-02-28 00:27:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).