Skip to main content

Module: libs/common/util/typeUtils

Namespaces

Type aliases

EnforceUndefined

Ƭ EnforceUndefined<T>: GetRequired<T> & UnionUndefined<Required<GetOptional<T>>>

Use this type to convert all optional keys in an interface to required undefined unions. Useful for passthrough objects that need manual extending { opt?: boolean; } => { opt: boolean | undefined; }

Type parameters

Name
T

Defined in

libs/common/util/typeUtils.ts:18