Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Created December 22, 2022 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssougnez/17f6d05feaa7e3bd49cff647b23045f4 to your computer and use it in GitHub Desktop.
Save ssougnez/17f6d05feaa7e3bd49cff647b23045f4 to your computer and use it in GitHub Desktop.
import { createEntities, Entities } from "@ssougnez/ng-store";
import { Pokemon } from "../models/pokemon.model";
export type AppState = {
pokemons: Entities<Pokemon>;
}
export const initial: AppState = {
pokemons: createEntities<Pokemon>([], ['type'])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment