client/src/services/profile.ts (8 lines of code) (raw):

import { Profile } from './entities/profile'; import { InjectionToken } from '@angular/core'; export interface IProfileService { loadProfile(): Promise<Profile>; saveProfile(profile: Profile): Promise<any>; } export const PROFILE_SERVICE = new InjectionToken<IProfileService>('Profile service'); export const PROFILE_CONFIG = new InjectionToken<any>('Profile service config');