Skip to main content

Type Alias: ParseLayoutResult

type ParseLayoutResult =
| {
layout: Layout;
ok: true;
}
| {
errors: LayoutError[];
ok: false;
};

What parseLayout returns: the validated layout, or the errors found.