title: Destructure a function parameter in Typescript
body: <p>I'm trying to give a type to the members of below function.
  <code>args</code> is an object with a <code>data</code> property of type <code>UserCreateInput</code></p>
  
  <p>So, from this:</p>
  
  <pre><code>createUser(parent: any, args: any, context: any) {
      return context.prisma.createUser(args.data)
  }
  </code></pre>
  
  <p>I wrote this:</p>
  
  <pre><code>createUser(parent: any, args: {data: UserCreateInput}, context: any) {
      return context.prisma.createUser(args.data)
  }
  </code></pre>
  
  <p>I'm not sure how to replace 'xxx' in <code>createUser(parent: any, xxx, context: any)</code> so I can simply return <code>return context.prisma.createUser(data)</code></p>