Skip to main content
Module

x/args/index.ts>types.Result

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

Type of result of a function that may fail

Type Parameters

Value

Type of value when the function succeeds

Error extends ParseError

Type of error when the function fails

definition: Ok<Value> | Err<Error>