@vue-macros/api
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -107,2 +107,3 @@ import { MagicString, SFC } from '@vue-macros/common'; | ||
methods: ASTDefinition<TSMethodSignature>[]; | ||
optional: boolean; | ||
} | ||
@@ -109,0 +110,0 @@ interface TSPropsProperty { |
@@ -268,3 +268,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
type: ["Function"], | ||
required: true | ||
required: !def.optional | ||
}; | ||
@@ -333,5 +333,7 @@ } else { | ||
for (const [key, sign] of Object.entries(properties.methods)) { | ||
const methods = sign.map((sign2) => buildDefinition(sign2)); | ||
definitions2[key] = { | ||
type: "method", | ||
methods: sign.map((sign2) => buildDefinition(sign2)) | ||
methods, | ||
optional: sign.some((sign2) => !!sign2.type.optional) | ||
}; | ||
@@ -338,0 +340,0 @@ } |
{ | ||
"name": "@vue-macros/api", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"packageManager": "pnpm@7.25.1", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
75162
2240