Consider using libraries that simplify working with interfaces and types in Typescript, among other things. I found the npm package dynamo-repo to be the simplest and easiest one to work with.
This other answer has some explanation and examples: use-type-at-dynamodb-output