I have function definition:
export function DivotTemplate(divot: Divot = {step: 8, triangleWidth: 4, radius: 0.6, strokeStyle: '#000'}, canvas: HTMLCanvasElement): HTMLCanvasElement {}
I want to be able pass not all object parameters like this:
DivotTemplate({step: 10});
As result to get this inside body of function:
{step: 10, triangleWidth: 4, radius: 0.6, strokeStyle: '#000'}
Is it possible?