UnannotateAllowedType TypeAlias
Removes annotations from an allowed type.
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 UnannotateAllowedType<T extends AnnotatedAllowedType | LazyItem<TreeNodeSchema>> = T extends AnnotatedAllowedType<infer X> ? X : T;
Type Parameters
Parameter | Constraint | Description |
---|---|---|
T | AnnotatedAllowedType | LazyItem<TreeNodeSchema> |
Remarks
If the input could be lazy (is a LazyItem or AnnotatedAllowedType instead of just a TreeNodeSchema | AnnotatedAllowedType) then the output of this will be a LazyItem and thus is not valid as an ImplicitAllowedTypes without wrapping it in an array. This can however be used on items within an AllowedTypes array. \