luaut-language-server 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startServer
4
- } from "./chunk-GHAR7NOH.js";
4
+ } from "./chunk-7N7PVZTQ.js";
5
5
 
6
6
  // src/cli.ts
7
7
  startServer();
package/dist/index.cjs CHANGED
@@ -876,18 +876,11 @@ function expandAliases(type, aliases, depth, seen = []) {
876
876
  return children2(type, (t) => expandAliases(t, aliases, depth, seen));
877
877
  }
878
878
  function withheldName(type) {
879
- if ((0, import_luaut_parser5.isClassType)(type)) return void 0;
880
- if (type.kind === "object" || type.kind === "intersection") return type.name;
881
879
  if (type.kind === "genericRef") return type.typeArguments.length ? void 0 : type.name;
882
- return void 0;
880
+ return (0, import_luaut_parser5.aliasNameOf)(type);
883
881
  }
884
882
  function unnamed(type) {
885
- if (type.kind === "object") {
886
- const out = (0, import_luaut_parser5.objectType)(type.properties, type.indexer, type.frozen);
887
- return type.class ? Object.assign(out, { class: type.class, name: type.name }) : out;
888
- }
889
- if (type.kind === "intersection" && type.name) return { ...type, name: void 0 };
890
- return type;
883
+ return (0, import_luaut_parser5.withoutAliasName)(type);
891
884
  }
892
885
  function children2(type, f) {
893
886
  switch (type.kind) {