Skip to content

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

Type Alias: PartialShape<T> ​

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

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

Converts every field in a shape into an optional schema.

Type Parameters ​

Type Parameter
T extends Shape