This is how I get typescript working in my Lambdas. Note, I end up with files I don't want packaged up. Probably need a yarn clean or something to prune out the undesireable files. But this is working for now.
// inside your lambda, you can access the GQL generated types
import type { Account, Order, OrderStatus } from 'API'