model_interfaces library

Classes

Normalizable
Anything that can be normalized to a map.
Range<T extends Comparable>
Anything with comparable start and end.
WithAncestorIds<I>
A tree node that can provide all its parents' IDs.
WithChildren<C>
Anything with children of a type C.
WithHomogenousParent<T extends WithHomogenousParent<T>>
Anything with an optional parent of the same type.
WithId<I>
Anything with an ID.
WithIdChildrenParent<I, C, P>
Anything with ID, children of type C and an optional parent of type P.
WithIdHomogenousChildrenParent<I, T extends WithIdHomogenousChildrenParent<I, T>>
Anything with ID, and children and an optional parent of the same type T.
WithIdSlug<I>
Anything with an ID and a Slug.
WithIdSlugTitle<I>
Anything with an ID, a Slug, and a title.
WithIdTitle<T>
Anything with both an ID and a title.
WithIdTitleChildrenParent<I, C, P>
Anything with ID, title, children of type C, and an optional parent of type P.
WithIdTitleHomogenousChildrenParent<I, T extends WithIdTitleHomogenousChildrenParent<I, T>>
Anything with ID, title, and children an an optional parent of the same type T.
WithParent<P>
Anything with an optional parent of type P.
WithSlug
Anything with a slug. The term: https://developer.mozilla.org/en-US/docs/Glossary/Slug The etymology: https://stackoverflow.com/a/4230937/11382675
WithTitle
Anything with a title.

Extensions

RangeExtension on Range<T>
An extension to hold methods so you can implement this class instead of extending it.
WithHomogenousParentExtension on WithHomogenousParent<T>
An extension to hold methods so you can implement this class instead of extending it.
WithIdHomogenousChildrenParentExtension on WithIdHomogenousChildrenParent<I, T>
An extension to hold methods so you can implement this class instead of extending it.