Type Alias DeepPartialShape<S>

DeepPartialShape<S>: S extends DeepPartialProtocol<infer T>
    ? T
    : S

Returns the deep partial alternative of the shape if it implements DeepPartialProtocol, or returns shape as is if it doesn't.

Type Parameters

  • S extends AnyShape

    The shape to convert to a deep partial alternative.