Skip to main content

UnannotateAllowedTypesList TypeAlias

Removes annotations from a list of allowed types that may contain annotations.

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 UnannotateAllowedTypesList<T extends readonly (AnnotatedAllowedType | LazyItem<TreeNodeSchema>)[]> = {
[I in keyof T]: T[I] extends AnnotatedAllowedType<infer X> ? X : T[I];
};

Type Parameters​

ParameterConstraintDescription
Treadonly (AnnotatedAllowedType | LazyItem<TreeNodeSchema>)[]