feat: new chord button, fixes #9

feat: improved backups
This commit is contained in:
2023-11-10 17:31:52 +01:00
parent 034436f93e
commit e19a57efac
9 changed files with 177 additions and 70 deletions

View File

@@ -4,7 +4,7 @@ export interface CharaFile<T extends string> {
}
export interface CharaLayoutFile extends CharaFile<"layout"> {
device: "one" | "lite" | string
device?: "ONE" | "LITE" | string
layout: [number[], number[], number[]]
}
@@ -12,8 +12,12 @@ export interface CharaChordFile extends CharaFile<"chords"> {
chords: [number[], number[]][]
}
export interface CharaChordSettings extends CharaFile<"settings"> {
export interface CharaSettingsFile extends CharaFile<"settings"> {
settings: number[]
}
export interface CharaBackupFile extends CharaFile<"backup"> {
history: [CharaChordFile, CharaLayoutFile, CharaSettingsFile][]
}
export type CharaFiles = CharaLayoutFile | CharaChordFile