<commit_before>import { Observable } from 'rxjs';

import { BaseStore } from '../../../Stores/BaseStore';
import { TodoListApi } from './TodoListApi';

export interface TodoListItem {
  id: number;
  content: string;
  completed: boolean;
}

export const TodoListActions = {
  GetItems: 'GetItems',
  AddItem: 'AddItem',
  RemoveItem: 'RemoveItem',
  SetCompleted: 'SetCompleted',
};

export class TodoListStore extends BaseStore {
  public static displayName = 'TodoListStore';

  public static readonly default = new TodoListStore();

  constructor(api = TodoListApi.default) {
    super(api);
  }

  public getItems() {<commit_msg>demoing store api strong typing<commit_after>import { Observable } from 'rxjs';

import { BaseApiStore } from '../../../Stores/BaseStore';
import { TodoListApi } from './TodoListApi';

export interface TodoListItem {
  id: number;
  content: string;
  completed: boolean;
}

export const TodoListActions = {
  GetItems: 'GetItems',
  AddItem: 'AddItem',
  RemoveItem: 'RemoveItem',
  SetCompleted: 'SetCompleted',
};

export class TodoListStore extends BaseApiStore<TodoListApi> {
  public static displayName = 'TodoListStore';

  public static readonly default = new TodoListStore();

  constructor(api = TodoListApi.default) {
    super(api);
  }

  public getItems() {
{'fraction_non_alphanumeric': 0.12260536398467432, 'fraction_numerical': 0.0, 'mean_word_length': 4.464435146443515, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2757872', 'n_tokens_mistral': 408, 'n_tokens_neox': 401, 'n_words': 108}