UNPKG

@timothy-spaceman/multitrack-vcs

Version:

Version Control System for musicians

41 lines (34 loc) 981 B
export type Item = { id: string // Item ID content: string // URL for a corresponding file in storage path: string // Local path (including filename) contentHash?: string } export type ItemList = Map<string, Item> export type ItemChange = { from?: string // Previous Item ID to?: string // New Item ID } export type Commit = { id: string // Commit ID parent?: string // Parent commit ID children: string[] // Children commit IDs authorId: string title: string description?: string date: string // Creation Date changes: ItemChange[] // List of changes in the commit } export type CommitList = Map<string, Commit> export type BranchList = Map<string, string> export type Status = { lastItems: ItemList, newItems: ItemList, changes: ItemChange[] } export type Difference = { added: ItemList, removed: ItemList, changed: ItemList, unchanged: ItemList, }