AllowedTypes TypeAlias
Types for use in fields.
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 AllowedTypes = readonly LazyItem<TreeNodeSchema>[];
Remarks
Type constraint used in schema declaration APIs.
The order of types in the array is not significant. Additionally, it is legal for users of this type to have the runtime and compile time order of items within this array not match. Therefor to ensure type safety, these arrays should not be indexed, and instead just be iterated.
Ideally this restriction would be modeled in the type itself, but it is not ergonomic to do so as there is no easy (when compared to arrays) way to declare and manipulate unordered sets of types in TypeScript.
Not intended for direct use outside of package.