@vue-macros/define-model
Advanced tools
Comparing version
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkDCBEGRMLjs = require('./chunk-DCBEGRML.js'); | ||
var _chunkI3QZS7T3js = require('./chunk-I3QZS7T3.js'); | ||
// src/esbuild.ts | ||
var esbuild_default = _chunkDCBEGRMLjs.src_default.esbuild; | ||
var esbuild_default = _chunkI3QZS7T3js.src_default.esbuild; | ||
@@ -8,0 +8,0 @@ |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkDCBEGRMLjs = require('./chunk-DCBEGRML.js'); | ||
var _chunkI3QZS7T3js = require('./chunk-I3QZS7T3.js'); | ||
exports.default = _chunkDCBEGRMLjs.src_default; | ||
exports.default = _chunkI3QZS7T3js.src_default; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkDCBEGRMLjs = require('./chunk-DCBEGRML.js'); | ||
var _chunkI3QZS7T3js = require('./chunk-I3QZS7T3.js'); | ||
// src/rollup.ts | ||
var rollup_default = _chunkDCBEGRMLjs.src_default.rollup; | ||
var rollup_default = _chunkI3QZS7T3js.src_default.rollup; | ||
@@ -8,0 +8,0 @@ |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkDCBEGRMLjs = require('./chunk-DCBEGRML.js'); | ||
var _chunkI3QZS7T3js = require('./chunk-I3QZS7T3.js'); | ||
// src/vite.ts | ||
var vite_default = _chunkDCBEGRMLjs.src_default.vite; | ||
var vite_default = _chunkI3QZS7T3js.src_default.vite; | ||
@@ -8,0 +8,0 @@ |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkDCBEGRMLjs = require('./chunk-DCBEGRML.js'); | ||
var _chunkI3QZS7T3js = require('./chunk-I3QZS7T3.js'); | ||
// src/webpack.ts | ||
var webpack_default = _chunkDCBEGRMLjs.src_default.webpack; | ||
var webpack_default = _chunkI3QZS7T3js.src_default.webpack; | ||
@@ -8,0 +8,0 @@ |
import type { | ||
UseModelOptions, | ||
$defineModel as _$defineModel, | ||
ModelOptions as _ModelOptions, | ||
defineModel as _defineModel, | ||
@@ -9,4 +11,5 @@ } from './macros' | ||
const $defineModel: typeof _$defineModel | ||
type ModelOptions<T, O extends UseModelOptions<T> = {}> = _ModelOptions<T, O> | ||
} | ||
export {} |
import type { WritableComputedRef } from 'vue' | ||
import type { UseVModelOptions } from '@vueuse/core' | ||
export type UseModelOptions<T> = Omit<UseVModelOptions<T>, 'passive'> & { | ||
/** | ||
* When passive is set to `true`, it will use `watch` to sync with props and ref. | ||
* Instead of relying on the `v-model` or `.sync` to work. | ||
* | ||
* @default true | ||
*/ | ||
passive?: boolean | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export type ModelOptions<T, O extends UseModelOptions<T> = {}> = T | ||
export const defineModel: <T>() => { | ||
[K in keyof T]: WritableComputedRef<T[K]> | ||
[K in keyof T]-?: WritableComputedRef<T[K]> | ||
} | ||
export const $defineModel: <T>() => T |
{ | ||
"name": "@vue-macros/define-model", | ||
"version": "1.1.1", | ||
"packageManager": "pnpm@7.18.1", | ||
"version": "1.2.0", | ||
"packageManager": "pnpm@7.21.0", | ||
"description": "", | ||
@@ -78,6 +78,8 @@ "keywords": [ | ||
"unplugin": "^1.0.1", | ||
"@vue-macros/common": "~0.13.5" | ||
"@vue-macros/common": "~0.13.6" | ||
}, | ||
"devDependencies": { | ||
"vue": "^3.2.45" | ||
"@vueuse/core": "^9.9.0", | ||
"vue": "^3.2.45", | ||
"@vue-macros/api": "^0.2.3" | ||
}, | ||
@@ -84,0 +86,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
45031
12.08%1168
5.04%3
200%Updated