type Operation = 'edit' | 'delete' | 'create' | 'requestEdit';
type HttpMethodPerOperation = {
    create: 'POST';
    delete: 'DELETE';
    edit: 'PUT';
    requestEdit: 'POST';
};

interface _LinksBody<K extends Operation> {
    href: string;
    method: HttpMethodPerOperation[K];
}

export type _LinksDTO = {
    [K in Operation]?: _LinksBody<K>;
};
