Skip to main content
Module

x/args/utils.ts>InitMap

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Go to Latest
class InitMap
extends Map<Key, Value>
Abstract
import { InitMap } from "https://deno.land/x/args@2.0.10/utils.ts";

Map-like class where .get(key) always result in defined value

Type Parameters

Key

Type of key

Value

Type of value

Methods

protected
abstract
init(key: Key): Value

This method is called by this.get when key of key does not exist in this yet. Result of this function will then be assigned as value to key of key

get(key: Key): Value