exupery-core-types
Version:
core types for Exupery
14 lines (13 loc) • 379 B
TypeScript
import { Optional_Value } from "./Optional_Value";
/**
* A lookup is similar to a Dictionary, but much more basic.
* There is only 1 operation: __get_entry.
*/
export interface Lookup<T> {
/**
* returns an {@link Optional_Value } of type T reflecting wether the entry existed or not
*
* @param key
*/
__get_entry(key: string): Optional_Value<T>;
}