@omnia/tooling-vue 8.0.334-dev → 8.0.335-dev

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.
@@ -259,9 +259,16 @@ function extractTypes(types, componentInfo) {
259
259
  function convertComponentOptionsToString(component) {
260
260
  function getEmits() {
261
261
  let result = "";
262
- Object.keys(component.emits).forEach(name => {
262
+ const emits = Object.keys(component.emits);
263
+ const models = Object.keys(component.models);
264
+ emits.forEach(name => {
263
265
  result = `${result} "${name}",`;
264
266
  });
267
+ models.forEach(name => {
268
+ if (emits.indexOf(name) === -1) {
269
+ result = `${result} "update:${name}",`;
270
+ }
271
+ });
265
272
  return result;
266
273
  }
267
274
  function getProps() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-vue",
3
3
  "license": "MIT",
4
- "version": "8.0.334-dev",
4
+ "version": "8.0.335-dev",
5
5
  "description": "Used to bundle and serve manifests web component that build on Vue framework.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.334-dev",
23
- "@omnia/tooling-composers": "8.0.334-dev",
22
+ "@omnia/fx-models": "8.0.335-dev",
23
+ "@omnia/tooling-composers": "8.0.335-dev",
24
24
  "@types/mousetrap": "1.5.34",
25
25
  "@types/quill": "1.3.6",
26
26
  "@types/zepto": "1.0.29",