Files
money/packages/shared/src/mutators.ts
2025-11-08 13:37:55 -05:00

19 lines
484 B
TypeScript

import type { Transaction } from "@rocicorp/zero";
import type { AuthData } from "./auth";
import type { Schema } from ".";
type Tx = Transaction<Schema>;
export function createMutators(authData: AuthData | null) {
return {
link: {
async create() {},
async get(tx: Tx, { link_token }: { link_token: string }) {},
async updateTransactions() {},
async updateBalences() {},
}
} as const;
}
export type Mutators = ReturnType<typeof createMutators>;