score:0

Accepted answer
var sampleDataPayload = {
   accountInformation: {
      userId: '123',
      groupId: '123'
   }
}

type PayloadType = {
   accountInformation: {
      userId: String;
      groupId: String;
   }
}
const functionApiName = async(payload: PayloadType) => {
    console.log(payload)
}
functionApiName(sampleDataPayload);

Related Query

More Query from same tag