UNPKG

@ts-for-gir/cli

Version:

TypeScript type definition generator for GObject introspection GIR files

31 lines (25 loc) 789 B
/** * Type definitions for command structure and exports */ import type { CopyCommandArgs, DocCommandArgs, GenerateCommandArgs, ListCommandArgs } from "./command-args.ts"; import type { CommandDefinition } from "./command-definition.ts"; /** * Generate command definition type */ export type GenerateCommand = CommandDefinition<GenerateCommandArgs>; /** * List command definition type */ export type ListCommand = CommandDefinition<ListCommandArgs>; /** * Copy command definition type */ export type CopyCommand = CommandDefinition<CopyCommandArgs>; /** * Doc command definition type */ export type DocCommand = CommandDefinition<DocCommandArgs>; /** * Union type for all command types */ export type AnyCommand = GenerateCommand | ListCommand | CopyCommand | DocCommand;