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

Function validator

packages-private/dts-test/defineComponent.test-d.tsx:352–355  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

350 myProp: {
351 type: Number,
352 validator(val: unknown): boolean {
353 // @ts-expect-error
354 return val !== this.otherProp
355 },
356 default(): number {
357 // @ts-expect-error
358 return this.otherProp + 1

Callers 2

emitFunction · 0.85
validatePropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected