demo/typescript.js
function isIndependentVariableLikeDeclaration(node) {
            return node.type && isIndependentType(node.type) || !node.type && !node.initializer;
        }
function isIndependentVariableLikeDeclaration(node) {
            return node.type && isIndependentType(node.type) || !node.type && !node.initializer;
        }
A variable-like declaration is considered independent (free of this references) if it has a type annotation that specifies an independent type, or if it has no type annotation and no initializer (and thus of type any).