Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Box<Content>

Type parameters

  • Content

Hierarchy

  • Box

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Box(content: Content): Box

Properties

Readonly content

content: Content

Methods

validate

  • validate<Sub>(fn: (content: Content) => content is Sub, error: (content: Content) => Error): Box<Sub>
  • Type parameters

    • Sub: Content

    Parameters

    • fn: (content: Content) => content is Sub
        • (content: Content): content is Sub
        • Parameters

          • content: Content

          Returns content is Sub

    • error: (content: Content) => Error
        • (content: Content): Error
        • Parameters

          • content: Content

          Returns Error

    Returns Box<Sub>

Generated using TypeDoc