fakexrmeasy
Version:
This project aims to provide mocks already implemented for Web API calls made from Javascript. This is a work in progress and way less mature than [its C# counterpart](https://github.com/jordimontana82/fake-xrm-easy).
18 lines (17 loc) • 480 B
TypeScript
import IDictionary from './IDictionary';
export default class Dictionary<T> implements IDictionary<T> {
_keys: string[];
_values: T[];
constructor(init?: {
key: string;
value: T;
}[]);
add(key: string, value: T): void;
set(key: string, value: T): void;
get(key: string): T;
remove(key: string): void;
keys(): string[];
values(): T[];
containsKey(key: string): boolean;
toLookup(): IDictionary<T>;
}