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
Parameters
-
fn: (content: Content) => content is Sub
-
- (content: Content): content is Sub
-
Parameters
Returns content is Sub
-
error: (content: Content) => Error
-
- (content: Content): Error
Returns Box<Sub>