/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.4.0
lib/config.d.ts
84 строки
2 KB
Labhansh Agrawal
Add preserveCWD option
08 янв 2022, 15:41
08 янв 2022, 15:41
f79006b
Код
Авторство
О чём код?
import {FontWeight} from 'xterm'; export type ColorMap = { black: string; blue: string; cyan: string; green: string; lightBlack: string; lightBlue: string; lightCyan: string; lightGreen: string; lightMagenta: string; lightRed: string; lightWhite: string; lightYellow: string; magenta: string; red: string; white: string; yellow: string; }; export type configOptions = { autoUpdatePlugins: boolean | string; backgroundColor: string; bell: string; bellSound: string | null; bellSoundURL: string | null; borderColor: string; colors: ColorMap; copyOnSelect: boolean; css: string; cursorAccentColor: string; cursorBlink: boolean; cursorColor: string; cursorShape: 'BEAM' | 'UNDERLINE' | 'BLOCK'; defaultSSHApp: boolean; disableAutoUpdates: boolean; disableLigatures: boolean; env: Record<string, string>; fontFamily: string; fontSize: number; fontWeight: FontWeight; fontWeightBold: FontWeight; foregroundColor: string; letterSpacing: number; lineHeight: number; macOptionSelectionMode: string; modifierKeys: { altIsMeta: boolean; cmdIsMeta: boolean; }; padding: string; preserveCWD: boolean; quickEdit: boolean; screenReaderMode: boolean; scrollback: number; selectionColor: string; shell: string; shellArgs: string[]; showHamburgerMenu: boolean | ''; showWindowControls: string; termCSS: string; uiFontFamily: string; updateChannel: 'stable' | 'canary'; useConpty: boolean; webGLRenderer: boolean; webLinksActivationKey: 'ctrl' | 'alt' | 'meta' | 'shift'; windowSize: [number, number]; workingDirectory: string; }; export type rawConfig = { config?: configOptions; plugins?: string[]; localPlugins?: string[]; keymaps?: Record<string, string | string[]>; }; export type parsedConfig = { config: configOptions; plugins: string[]; localPlugins: string[]; keymaps: Record<string, string[]>; };