Function arrayItems

  • Decorates an array property with item type information

    Parameters

    • itemType: () => SchemaConstructor

      Function returning the item type

    Returns PropertyDecorator

    class PostList {
    @arrayItems(() => Post)
    items: Post[];
    }