UNPKG

@visulima/cerebro

Version:

A delightful toolkit for building cross-runtime CLIs for Node.js, Deno, and Bun.

10 lines (9 loc) 458 B
import type { OptionDefinition, PossibleOptionDefinition } from "../../types/command.d.ts"; /** * Determines whether an option definition is typed as Boolean. * @template OD * @param option Option definition to inspect. * @returns True when the option's type constructor is the built-in `Boolean`. */ declare const optionIsBoolean: <OD extends OptionDefinition<unknown>>(option: PossibleOptionDefinition<OD>) => boolean; export default optionIsBoolean;