Skip to main content

AnnotateAllowedTypesList TypeAlias

Add annotations to a list of allowed types that may or may not 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 AnnotateAllowedTypesList<T extends readonly (AnnotatedAllowedType | LazyItem<TreeNodeSchema>)[]> = {
[I in keyof T]: T[I] extends AnnotatedAllowedType<unknown> ? T[I] : AnnotatedAllowedType<T[I]>;
};

Type Parameters

Parameter Constraint Description
T readonly (AnnotatedAllowedType | LazyItem<TreeNodeSchema>)[]