From 71f7165833c2c71ad2144ef6b319e9179af2805f Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Wed, 28 Jun 2023 15:14:09 +0100 Subject: [PATCH] Simplify typescript interface --- src/routes/repo/[projectId]/vbranches.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/repo/[projectId]/vbranches.ts b/src/routes/repo/[projectId]/vbranches.ts index 129317360..08c09801e 100644 --- a/src/routes/repo/[projectId]/vbranches.ts +++ b/src/routes/repo/[projectId]/vbranches.ts @@ -9,12 +9,12 @@ import { error } from '$lib/toasts'; const cache: Map>> = new Map(); export interface VirtualBranchOperations { - setTarget: (branch: string) => Promise; - createBranch: (name: string, path: string) => Promise; - commitBranch: (branch: string, message: string) => Promise; - updateBranchTarget: () => Promise; - updateBranchName: (branchId: string, name: string) => Promise; - moveFiles: (branchId: string, paths: Array) => Promise; + setTarget(branch: string): Promise; + createBranch(name: string, path: string): Promise; + commitBranch(branch: string, message: string): Promise; + updateBranchTarget(): Promise; + updateBranchName(branchId: string, name: string): Promise; + moveFiles(branchId: string, paths: Array): Promise; } export function getVirtualBranches(