Skip to main content
Module

x/earthstar/deps.ts>SuperbusMap

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
class SuperbusMap
import { SuperbusMap } from "https://deno.land/x/earthstar@v9.3.3/deps.ts";

Constructors

new
SuperbusMap(mapToClone?:
| Map<K, V>
| Array<[K, V]>
| Iterable<[K, V]>
| null
| undefined
, sep?: string
)

Type Parameters

K extends string
V

Properties

_map: Map<K, V>
_sep: string
bus: Superbus<string>
readonly
size: number

Methods

clear(): Promise<void>
delete(key: K): Promise<boolean>
forEach(cb: (value: V, key: K) => void)
get(key: K): V | undefined
has(key: K): boolean
set(key: K, value: V): Promise<"added" | "changed" | "unchanged">