mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
types: using unknown instead of any (#8152)
* types: using unknown instead of any * chore: UnknownProp
This commit is contained in:
@@ -19,7 +19,7 @@ export type CheckboxGroupToggleAllOptions =
|
||||
export type CheckboxGroupProvide = CheckerParent & {
|
||||
props: {
|
||||
max: number | string;
|
||||
modelValue: any[];
|
||||
modelValue: unknown[];
|
||||
};
|
||||
updateModelValue: (value: unknown[]) => void;
|
||||
};
|
||||
@@ -32,7 +32,7 @@ export default createComponent({
|
||||
iconSize: [Number, String],
|
||||
checkedColor: String,
|
||||
modelValue: {
|
||||
type: Array as PropType<any[]>,
|
||||
type: Array as PropType<unknown[]>,
|
||||
default: () => [],
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user