Module

x/ts_morph/common/ts_morph_common.d.ts>SortedKeyValueArray

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
class SortedKeyValueArray
import { SortedKeyValueArray } from "https://dotland.deno.dev/x/ts_morph@21.0.0/common/ts_morph_common.d.ts";

An array where the values are sorted by a key of one of the values.

Constructors

new
SortedKeyValueArray(getKey: (value: TValue) => TKey, comparer: Comparer<TKey>)

Type Parameters

TKey
TValue

Methods

entries(): Generator<TValue, void, undefined>
hasItems(): boolean
removeByKey(key: TKey): void
removeByValue(value: TValue): void
set(value: TValue): void