I am currently working on an Angular 5 project and came across this intriguing Typescript code snippet.
(method) CreateFlightComponent.handleSave({ currentValue, stepIndex }: {
currentValue: Partial<Flight>;
stepIndex: number;
}): void
Can someone provide a breakdown of this section? Perhaps there is a better way to convey this information using a different syntax?
{ currentValue, stepIndex }: {
currentValue: Partial<Flight>;
stepIndex: number;
}