Skip to content

Export type Flags #27

Open
Open
@transitive-bullshit

Description

Feature request

It makes sense to export public types for ease of access, and I find myself commonly wanting to omit/pick from a set of flags shared across multiple CLIs within a large project. I can do this with the workaround below, but it would be nicer if this module exported the Flags type directly.

Why?

It's useful to get the type of Flags without introspecting the other output types.

Alternatives

import { type Command, cli } from 'cleye'

type Flags = NonNullable<Command['options']['flags']>

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions