Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/args/index.ts>types.ValueType

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

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