e</code> to store the current type being viewed, in a <a href="/api/store/type-aliases/store/value/"><code>Value</code></a> called <code>type</code>.</p><p>We also want to index the todos by type, so we create and memoize an <a href="/api/indexes/interfaces/indexes/indexes/"><code>Indexes</code></a> object, and define an index called <code>types</code> on the <code>todos</code> <a href="/api/store/type-aliases/store/table/"><code>Table</code></a>, based on the value of the <code>type</code> <a href="/api/st