Standard purpose labels recognized by the chain. Free-form strings allowed too.
The (string & {}) trick keeps autocomplete on the known labels while still
accepting arbitrary purpose strings. Don't "simplify" to plain string — it
loses the autocompletion benefit. See: https://github.com/microsoft/TypeScript/issues/29729
Standard purpose labels recognized by the chain. Free-form strings allowed too.
The
(string & {})trick keeps autocomplete on the known labels while still accepting arbitrary purpose strings. Don't "simplify" to plainstring— it loses the autocompletion benefit. See: https://github.com/microsoft/TypeScript/issues/29729