packages/typescript-to-proptypes/src/injector.ts/flattenTsAsExpression
function flattenTsAsExpression(node: object | null | undefined) {
  if (babelTypes.isTSAsExpression(node)) {
    return node.expression as babel.Node;
  }

  return node;
}