title: TypeScript Error Argument of type '{}' is not assignable to parameter of type 'Variable Y'
body: <pre><code>
  sampleDataPayload = {
     accountInformation: {
        userId: '123';
        groupId: '123';
     }
  }
  
  type PayloadType = {
     accountInformation: {
        userId: String;
        groupId: String;
     }
  }
  
  export const functionApiName = async(payload: PayloadType) =&gt; {
      //...calling Api logic
  }
  </code></pre>
  <p>Hi All,</p>
  <p>I am beginner of typescript. I received the below error messages when run build. Can anyone guide me how should I declare the type of payload with the sample payload data i provided on above?</p>
  <p><strong>TS2345: Argument of type '{}' is not assignable to parameter of type 'PayloadType'.</strong>
  <strong>Property 'accountInformation' is missing in type '{}' but required in type 'PayloadType'.</strong></p>
  <p>Thank you for your time and help!</p>