Skip to content

Commit f0faa5f

Browse files
committed
fix ts typing
1 parent 2f5fda4 commit f0faa5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validators/custom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function custom<T>(
1212
}
1313

1414
return toType<T>(validatorFn.name || '<<anonymous function>>', {
15-
type: null as PropType<T>,
15+
type: null as unknown as PropType<T>,
1616
validator(this: VueTypeDef<T>, value: T) {
1717
const valid = validatorFn(value)
1818
if (!valid) warn(`${this._vueTypes_name} - ${warnMsg}`)

0 commit comments

Comments
 (0)