routie dev init since i didn't adhere to any proper guidance up until now

This commit is contained in:
2026-04-29 22:27:29 -06:00
commit e1dabb71e2
15301 changed files with 3562618 additions and 0 deletions
@@ -0,0 +1,25 @@
export type KeyCombination = Sequence | Alternate | Combo | Key;
export interface Sequence {
type: 'sequence';
parts: (Alternate | Combo | Key)[];
}
export interface Alternate {
type: 'alternate';
parts: (Combo | Key)[];
}
export interface Combo {
type: 'combo';
parts: Key[];
}
export type Key = string;
/**
* Splits a single combination string into individual key parts.
* Grammar:
*
* sequence = alternate *('-' alternate)
* alternate = combo *('/' combo)
* combo = key *(('+' | '_') key)
* key = /./ *(/[^-/+_ ]/)
*
*/
export declare function parseKeyCombination(input: string): KeyCombination;