19 lines
484 B
TypeScript
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>;
|