ApplyKind

Packages > fluid-framework > InternalTypes > ApplyKind

Suitable for output. For input must error on side of excluding undefined instead.

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here .

Signature

export type ApplyKind<T, Kind extends FieldKind, DefaultsAreOptional extends boolean> = {
    [FieldKind.Required]: T;
    [FieldKind.Optional]: T | undefined;
    [FieldKind.Identifier]: DefaultsAreOptional extends true ? T | undefined : T;
}[Kind];

Type Parameters

Parameter Constraint Description
T
Kind FieldKind
DefaultsAreOptional boolean