@sudoo/marked
Version:
JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous
24 lines (23 loc) • 618 B
TypeScript
/**
* @author WMXPY
* @namespace Variable
* @description Map
*/
import { Variable } from "./variable";
export declare class SandMap<T> {
static fromScratch<T>(): SandMap<T>;
static fromRawRecord<T>(record: Record<string, T>): SandMap<T>;
private readonly _map;
private constructor();
get map(): {
[]: T;
};
keys(): string[];
has(key: string): boolean;
get(key: string): T | undefined;
set(key: string, value: T): this;
concat(map: SandMap<T>): this;
getRaw(key: string): Variable<T> | undefined;
clone(): SandMap<T>;
toString(): string;
}