refactor: move into monorepo
This commit is contained in:
18
packages/shared/src/mutators.ts
Normal file
18
packages/shared/src/mutators.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user