types: using unknown instead of any (#8152)

* types: using unknown instead of any

* chore: UnknownProp
This commit is contained in:
neverland
2021-02-14 12:37:02 +08:00
committed by GitHub
parent 393b2a256f
commit 08e928111b
23 changed files with 81 additions and 56 deletions

View File

@@ -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: () => [],
},
},