我的代码是这样的。
type RootStackParamList = {
Home: undefined;
HomeTextInput: undefined;
HomeSearchResult: {searchText: string};
};
type HomeSearchResultRouteProp = RouteProp<
RootStackParamList,
'HomeSearchResult'
>;
const route = useRoute<'HomeSearchResultRouteProp'>();
const {searchText} = route.params;
但是我遇到了错误:TS2339:类型'Pick
我该如何解决这个问题?