Skip to content

Instantly share code, notes, and snippets.

@webmasterdevlin
Created July 28, 2019 12:56
Show Gist options
  • Save webmasterdevlin/9b71fcdf6f19f494a6e9b9551579c7ab to your computer and use it in GitHub Desktop.
Save webmasterdevlin/9b71fcdf6f19f494a6e9b9551579c7ab to your computer and use it in GitHub Desktop.
Akita Model: src/app/heroes/hero.model.ts
import { ID, EntityState } from '@datorama/akita';
export type HeroModel = {
id: ID;
firstName: string;
lastName: string;
house: string;
knownAs: string;
};
export interface HeroesState extends EntityState<HeroModel> {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment