UNPKG

ts-jsdk

Version:

TypeScript implementation of the Java platform

11 lines (10 loc) 269 B
import { JIterator } from "./JIterator"; export interface JEntry<K = any, V = any> { getKey(): K; getValue(): V; } export interface JMap<K = any, V = any> { entries(): JIterator<JEntry<K, V>>; get(key: K): V; put(key: K, value: V): V | undefined; }