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.Partial

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

Turn an option partial:

  • If the option does not have a value, return default value
  • If the option has a value, return that value

type

<Name extends string, Value, Default>(
x: FlagType<Name, Value>,
def: Default,
descDef?: string,
) => FlagType<Name, Value | Default>