tui-runtime.ts 467 B

123456789101112
  1. import { resolve, type Info, type Resolved } from "../../src/config"
  2. import { TuiKeybind } from "../../src/config/keybind"
  3. type ResolvedInput = Omit<Info, "attention" | "keybinds" | "leader_timeout"> & {
  4. attention?: Partial<Resolved["attention"]>
  5. keybinds?: Partial<TuiKeybind.Keybinds>
  6. leader_timeout?: number
  7. }
  8. export function createTuiResolvedConfig(input: ResolvedInput = {}) {
  9. return resolve(input, { terminalSuspend: process.platform !== "win32" })
  10. }