@vue-macros/api
Advanced tools
Comparing version 0.10.5 to 0.10.6
@@ -596,14 +596,15 @@ // src/index.ts | ||
return ["Object"]; | ||
case "TSInterfaceDeclaration": | ||
case "TSTypeLiteral": { | ||
const resolved = await resolveTSProperties({ | ||
type: node.type, | ||
scope: node.scope | ||
}); | ||
const types = /* @__PURE__ */ new Set(); | ||
for (const m of node.type.members) { | ||
switch (m.type) { | ||
case "TSCallSignatureDeclaration": | ||
case "TSConstructSignatureDeclaration": | ||
types.add("Function"); | ||
break; | ||
default: | ||
types.add("Object"); | ||
} | ||
if (resolved.callSignatures.length || resolved.constructSignatures.length) { | ||
types.add("Function"); | ||
} | ||
if (Object.keys(resolved.methods).length || Object.keys(resolved.properties).length) { | ||
types.add("Object"); | ||
} | ||
return Array.from(types); | ||
@@ -685,4 +686,2 @@ } | ||
return ["Symbol"]; | ||
case "TSInterfaceDeclaration": | ||
return ["Object"]; | ||
} | ||
@@ -689,0 +688,0 @@ return [UNKNOWN_TYPE]; |
{ | ||
"name": "@vue-macros/api", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"description": "General API for Vue Macros.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127656
3336