Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>args.PartialOption

Sync posts from Mastodon into FeoBlog
Go to Latest
variable args.PartialOption
import { args } from "https://deno.land/x/feomasto@v0.1.0/priv/deps.ts";
const { PartialOption } = args;

Declare a partial option:

  • If a value is found, return that value
  • If not, return default value

type

<Name extends string, Value, Default>(name: Name, descriptor: PartialOptionDescriptor<Value, Default>) => FlagType<Name, Value | Default>