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/{chunk-GHAR7NOH.js → chunk-7N7PVZTQ.js} +14 -11
- package/dist/chunk-7N7PVZTQ.js.map +1 -0
- package/dist/cli.cjs +2 -9
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +2 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-GHAR7NOH.js.map +0 -1
package/dist/cli.js
CHANGED
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
|
|
880
|
+
return (0, import_luaut_parser5.aliasNameOf)(type);
|
|
883
881
|
}
|
|
884
882
|
function unnamed(type) {
|
|
885
|
-
|
|
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) {
|