Skip to content

Documentation / @sw-file-lib/xml / xml-schema / OptionalKeys

Type Alias: OptionalKeys<T> ​

ts
type OptionalKeys<T> = { [K in keyof T]: T[K] extends OptionalSchema<any> ? K : never }[keyof T];

Defined in: packages/xml/src/xml-schema/types.ts:300

Keys whose fields are optional schemas.

Type Parameters ​

Type Parameter
T extends Shape