mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 19:01:38 +01:00
12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
import { createModelStore } from "@yaakapp-internal/model-store";
|
|
import type { HttpExchange } from "@yaakapp-internal/proxy-lib";
|
|
|
|
type ProxyModels = {
|
|
http_exchange: HttpExchange;
|
|
};
|
|
|
|
export const { dataAtom, applyChange, replaceAll, listAtom, orderedListAtom } =
|
|
createModelStore<ProxyModels>(["http_exchange"]);
|
|
|
|
export const httpExchangesAtom = orderedListAtom("http_exchange", "createdAt", "desc");
|