MCPcopy
hub / github.com/vuejs/core / setup

Function setup

packages-private/dts-test/setupHelpers.test-d.ts:527–533  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

525 defineComponent({
526 props: ['foo'],
527 setup(props) {
528 const r = useModel(props, 'foo')
529 expectType<Ref<any>>(r)
530
531 // @ts-expect-error
532 useModel(props, 'bar')
533 },
534 })
535
536 defineComponent({

Callers

nothing calls this directly

Calls 1

useModelFunction · 0.85

Tested by

no test coverage detected