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

Function defineProps

packages/runtime-core/src/apiSetupHelpers.ts:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90>
91// implementation
92export function defineProps() {
93 if (__DEV__) {
94 warnRuntimeUsage(`defineProps`)
95 }
96 return null as any
97}
98
99export type DefineProps<T, BKeys extends keyof T> = Readonly<T> & {
100 readonly [K in BKeys]-?: boolean

Callers 3

testFunction · 0.85

Calls 1

warnRuntimeUsageFunction · 0.85

Tested by 1

testFunction · 0.68