Типы для разрушения параметров

// How to you apply types to destructured parameters?
function args({ a, b }){
  ...
}

// TypeScript: types for parameter destructuring
function args({ a, b }:{ a: string, b: boolean }){
  ...
}

args({ a: "a", b: false });
KostasX