peterbourgon / ff

Flags-first package for configuration
Apache License 2.0
1.34k stars 59 forks source link

Type alias for runtime-constrained flag set `any` #115

Closed flowchartsman closed 10 months ago

flowchartsman commented 10 months ago

Having an any in the signature for Parse is unsatisfying because it is actually a runtime-constrained value, and any does not convey this information.

In lieu of support for "union type" general interfaces which allow the intermixing of basic interfaces with concrete types, a type alias to any with a descriptive name at least places the constraint front-and-center.

flowchartsman commented 10 months ago

Aha, never mind! My clever ploy to get on your committer's list with a four-line PR is thwarted! ;) (ref: b12d8988967b158339daad0d82a1c0ba4ba63f0f)

peterbourgon commented 10 months ago

Aha, never mind! My clever ploy to get on your committer's list with a four-line PR is thwarted! ;) (ref: b12d898)

😭