mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 02:41:21 +01:00
16 lines
418 B
TypeScript
16 lines
418 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",
|
|
);
|