From 08086c8002086a93b9f82aa642485c95ddbaf143 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 5 Mar 2021 11:05:50 +0800 Subject: [PATCH] types(AddressEdit): validator prop typing (#8284) --- src/address-edit/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/address-edit/index.tsx b/src/address-edit/index.tsx index 5d77f5526..280a4e747 100644 --- a/src/address-edit/index.tsx +++ b/src/address-edit/index.tsx @@ -55,7 +55,9 @@ export default createComponent({ areaList: Object as PropType, isSaving: Boolean, isDeleting: Boolean, - validator: Function, + validator: Function as PropType< + (key: string, value: string) => string | undefined + >, showDelete: Boolean, showPostal: Boolean, disableArea: Boolean,