javascript - 'QueryProps' türünün hiçbir özelliği yok ve hiçbir dize indeks imzası yok


[email ve [email kullanıyorum ve aşağıdaki kodumda bunu bir hata olarak aldım:

export default graphql(PROFILE_QUERY, {
  options: {
    fetchPolicy: 'cache-and-network',
  },
  props: ({ data: { loading, currentUser } }) => ({
    loading,
    currentUser,
  }),
})(User);

Ve bileşen şöyle deklar edilir:

export interface IUserProps {
  loading: boolean;
  currentUser: {
    login: string;
  };
}
class User extends React.Component<IUserProps, any> {