type alias OptionalKeys

The keys of F whose codecs are marked optional.

Type Parameters

F extends XmlFields

Definition

[K in keyof F]: F[K] extends { optional: true; } ? K : never[keyof F]

Usage

import { type OptionalKeys } from "protocol/xml.ts";