Interface TwingContext<K, V>

interface TwingContext<K, V> {
    size: number;
    [iterator](): IterableIterator<[string, V]>;
    clone(): TwingContext<K, V>;
    delete(key: K): boolean;
    entries(): IterableIterator<[string, V]>;
    get(key: K): undefined | V;
    has(key: K): boolean;
    set(key: K, value: V): TwingContext<K, V>;
    values(): IterableIterator<V>;
}

Type Parameters

  • K extends string
  • V

Properties

size: number

Methods