code: function getIntersectionType(types, aliasSymbol, aliasTypeArguments) {
              if (types.length === 0) {
                  return emptyObjectType;
              }
              var typeSet = [];
              addTypesToIntersection(typeSet, types);
              if (typeSet.containsAny) {
                  return anyType;
              }
              if (typeSet.length === 1) {
                  return typeSet[0];
              }
              var id = getTypeListId(typeSet);
              var type = intersectionTypes[id];
              if (!type) {
                  var propagatedFlags = getPropagatingFlagsOfTypes(typeSet, /*excludeKinds*/ 6144 /* Nullable */);
                  type = intersectionTypes[id] = createObjectType(1048576 /* Intersection */ | propagatedFlags);
                  type.types = typeSet;
                  type.aliasSymbol = aliasSymbol;
                  type.aliasTypeArguments = aliasTypeArguments;
              }
              return type;
          }
docs: We do not perform structural deduplication on intersection types. Intersection types are created only by the & type operator and we can't reduce those because we want to support recursive intersection types. For example, a type alias of the form "type List<T> = T & { next: List<T> }" cannot be reduced during its declaration. Also, unlike union types, the order of the constituent types is preserved in order that overload resolution for intersections of types with signatures can be deterministic.