Options
All
  • Public
  • Public/Protected
  • All
Menu

pgzod

Index

Type aliases

Variables

Functions

Type aliases

Options

Options: { clean: boolean; customZodTypes: string[]; output: string; schema: string; strategy?: string } & CreatePoolProps

Default command options.

Variables

Const command

command: "pgzod" = "pgzod"

Default command name.

Const describe

describe: "create Zod types for a postgres schema" = "create Zod types for a postgres schema"

Default command description.

Functions

Const builder

  • builder(args: Argv<Record<string, unknown>>): Argv<Options>

Const handler

  • Yargs default command handler function. Defaults are duplicated to allow importing this function from another module.

    Parameters

    Returns Promise<void>

Generated using TypeDoc