Skip to main content
Module

x/args/types.ts>ValueType

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Latest
interface ValueType
import { type ValueType } from "https://deno.land/x/args@2.1.1/types.ts";

Interface of a value type

Type Parameters

Value

Type of value (output)

Raw extends readonly string[]

Type of argument tuple (input)

Properties

readonly
[[Symbol.toStringTag]]: string

Class name

Methods

extract(raw: Raw): Result<Value, ValueError>

Convert an array of raw arguments to value of the type

getTypeName(): string

Type name to display in console.log

optional
help(): string

Extra help messages