mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-22 18:02:42 +00:00
24 lines
627 B
TypeScript
24 lines
627 B
TypeScript
export interface CharaFile<T extends string> {
|
|
charaVersion: 1;
|
|
type: T;
|
|
}
|
|
|
|
export interface CharaLayoutFile extends CharaFile<"layout"> {
|
|
device?: "ONE" | "LITE" | string;
|
|
layout: [number[], number[], number[]];
|
|
}
|
|
|
|
export interface CharaChordFile extends CharaFile<"chords"> {
|
|
chords: [number[], number[]][];
|
|
}
|
|
|
|
export interface CharaSettingsFile extends CharaFile<"settings"> {
|
|
settings: number[];
|
|
}
|
|
|
|
export interface CharaBackupFile extends CharaFile<"backup"> {
|
|
history: [CharaChordFile, CharaLayoutFile, CharaSettingsFile][];
|
|
}
|
|
|
|
export type CharaFiles = CharaLayoutFile | CharaChordFile | CharaSettingsFile;
|