string union of dot-separated paths
union of object slices
FlatModel = {
title: string;
description?: string | null;
comments: {
content: string;
readonly id: string;
readonly createdAt: string;
readonly updatedAt: string;
}[];
readonly id: string;
readonly createdAt: string;
readonly updatedAt: string;
}
Path = 'title' | 'comments.id' | 'comments.content'
{ title: string } | { comments: { id: string} } | { comments: { content: string} }
Picks object properties that match provided dot-separated Path