diff --git a/src/context/following.tsx b/src/context/following.tsx index f3208ca9..4076941b 100644 --- a/src/context/following.tsx +++ b/src/context/following.tsx @@ -2,10 +2,16 @@ import { Accessor, JSX, createContext, createEffect, createSignal, useContext } import { createStore } from 'solid-js/store' import { apiClient } from '../graphql/client/core' -import { AuthorFollows, FollowingEntity } from '../graphql/schema/core.gen' +import { Author, Community, FollowingEntity, Topic } from '../graphql/schema/core.gen' import { useSession } from './session' +type AuthorFollows = { + topics: Topic[] + authors: Author[] + communities: Community[] +} + interface FollowingContextType { loading: Accessor subscriptions: AuthorFollows