repos / starfx

a micro-mvc framework for react apps
git clone https://github.com/neurosnap/starfx.git

starfx / src / store / slice
Eric Bower  ·  2025-06-06

index.ts

 1import { type AnyOutput, any } from "./any.js";
 2import {
 3  type LoaderOutput,
 4  defaultLoader,
 5  defaultLoaderItem,
 6  loaders,
 7} from "./loaders.js";
 8import { type NumOutput, num } from "./num.js";
 9import { type ObjOutput, obj } from "./obj.js";
10import { type StrOutput, str } from "./str.js";
11import { type TableOutput, table } from "./table.js";
12
13export const slice = {
14  str,
15  num,
16  table,
17  any,
18  obj,
19  loaders,
20  /**
21   * @deprecated Use `slice.loaders` instead
22   */
23  loader: loaders,
24};
25export { defaultLoader, defaultLoaderItem };
26export type {
27  AnyOutput,
28  LoaderOutput,
29  NumOutput,
30  ObjOutput,
31  StrOutput,
32  TableOutput,
33};