code: function getTypeFromBindingElement(element, includePatternInType, reportErrors) {
              if (element.initializer) {
                  return checkExpressionCached(element.initializer);
              }
              if (ts.isBindingPattern(element.name)) {
                  return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors);
              }
              if (reportErrors && compilerOptions.noImplicitAny && !declarationBelongsToPrivateAmbientMember(element)) {
                  reportImplicitAnyError(element, anyType);
              }
              return anyType;
          }
docs: Return the type implied by a binding pattern element. This is the type of the initializer of the element if one is present. Otherwise, if the element is itself a binding pattern, it is the type implied by the binding pattern. Otherwise, it is the type any.