Logo GenPRES

Dto Module

Holds the Dto of an age in weeks and days and converts the age to and from the Dto. Returns a validation error for weeks or days outside the bounds.

Types

Type Description

Dto

Functions and values

Function or value Description

dto ()

Full Usage: dto ()

Parameters:
    () : unit

Returns: Dto
() : unit
Returns: Dto

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Result<AgeWeeksDays, ValidationErrors>

toDto awd

Full Usage: toDto awd

Parameters:
Returns: Dto
awd : AgeWeeksDays
Returns: Dto

Type something to start searching.