From ec36f0c494a0ad71a0b78d23f95d431da88d2862 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Tue, 27 Jun 2023 08:41:38 +0200 Subject: [PATCH] rename virtual branch interface in agent noun form --- src/routes/projects_new/[projectId]/Board.svelte | 4 ++-- src/routes/projects_new/[projectId]/vbranches.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/projects_new/[projectId]/Board.svelte b/src/routes/projects_new/[projectId]/Board.svelte index ff9afe4b0..678bcc153 100644 --- a/src/routes/projects_new/[projectId]/Board.svelte +++ b/src/routes/projects_new/[projectId]/Board.svelte @@ -5,11 +5,11 @@ import { createEventDispatcher } from 'svelte'; import NewBranchDropZone from './NewBranchDropZone.svelte'; import type { Branch } from './types'; - import type { VirtualBranch } from './vbranches'; + import type { VirtualBrancher } from './vbranches'; export let projectId: string; export let branches: Branch[]; - export let branchStore: VirtualBranch; + export let branchStore: VirtualBrancher; const dispatch = createEventDispatcher(); const newBranchClass = 'new-branch-active'; diff --git a/src/routes/projects_new/[projectId]/vbranches.ts b/src/routes/projects_new/[projectId]/vbranches.ts index a5252e36b..b9dec6ba2 100644 --- a/src/routes/projects_new/[projectId]/vbranches.ts +++ b/src/routes/projects_new/[projectId]/vbranches.ts @@ -6,7 +6,7 @@ import { plainToInstance } from 'class-transformer'; import type { Readable, Writable } from '@square/svelte-store'; /** Virtual Branch interface with custom operations on top of subscribing */ -export interface VirtualBranch { +export interface VirtualBrancher { /** * Force re-fetch of the branches. Exists temporarily until we have all mutations on this interface. */ @@ -16,7 +16,7 @@ export interface VirtualBranch { const cache: Record>> = {}; -export default (projectId: string): VirtualBranch | Readable> => { +export default (projectId: string): VirtualBrancher | Readable> => { if (projectId in cache) { const store = cache[projectId]; return {