code: function isTypeAnnotationAFunction(node, options) {
    return (
      (node.type === "TypeAnnotation" || node.type === "TSTypeAnnotation") &&
      node.typeAnnotation.type === "FunctionTypeAnnotation" &&
      !node.static &&
      !sameLocStart(node, node.typeAnnotation, options)
    );
  }
docs: Hack to differentiate between the following two which have the same ast declare function f(a): void; var f: (a) => void;