I have an Angular 5 project and I saw this Typescript code.
(method) CreateFlightComponent.handleSave({ currentValue, stepIndex }: {
currentValue: Partial<Flight>;
stepIndex: number;
}): void
Could anyone explain this part? Or is there any better way to express with a different syntax?
{ currentValue, stepIndex }: {
currentValue: Partial<Flight>;
stepIndex: number;
}