import type { TSESTree } from '@typescript-eslint/experimental-utils' ; import { RequiredParserServices } from './parser-services' ; export function getTypeFromTreeNode ( node , services ) { const checker = services . program . getTypeChecker ( ) ; return checker . getTypeAtLocation ( services . esTreeNodeToTSNodeMap . get ( node ) ) ; }