@lens-protocol/react
Version:
Interacting with the Lens Protocol API using React.
9 lines (8 loc) • 443 B
TypeScript
import { Profile } from '@lens-protocol/api-bindings';
import { ProfileId } from '@lens-protocol/domain/entities';
export interface IProfileCacheManager {
fetchProfileById(id: ProfileId): Promise<Profile | null>;
fetchProfileByHandle(fullHandle: string): Promise<Profile | null>;
refreshCurrentProfile(): Promise<void>;
update(profileId: ProfileId, updateFn: <TProfile extends Profile>(current: TProfile) => TProfile): void;
}