@types/terminal-kit
Advanced tools
Comparing version 1.28.2 to 1.28.3
{ | ||
"name": "@types/terminal-kit", | ||
"version": "1.28.2", | ||
"version": "1.28.3", | ||
"description": "TypeScript definitions for terminal-kit", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/terminal-kit", | ||
"license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "482fccf49d1b7d23757d7bf76f9b331e863256217af22d927faf7f8a170c0890", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "4fbd1e386e04b0f1305235f8ce0ddd851da9d37b18dba123d33fe1eb5cf73324", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 08 Apr 2020 18:16:59 GMT | ||
* Last updated: Fri, 02 Jul 2021 21:32:14 GMT | ||
* Dependencies: [@types/nextgen-events](https://npmjs.com/package/@types/nextgen-events) | ||
@@ -14,0 +14,0 @@ * Global values: `TextBuffer` |
@@ -30,3 +30,3 @@ import Terminal = require("./Terminal"); | ||
offsetY: number; | ||
wrapOnly?: "x" | "y"; | ||
wrapOnly?: "x" | "y" | undefined; | ||
}): void; | ||
@@ -52,4 +52,4 @@ | ||
height: number; | ||
x?: number; | ||
y?: number; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | ||
@@ -56,0 +56,0 @@ |
@@ -33,3 +33,3 @@ import NextGenEvents = require("nextgen-events"); | ||
height: number; | ||
}; | ||
} | undefined; | ||
}, | ||
@@ -54,3 +54,3 @@ calback: (error: any, image: ScreenBufferHD) => void | ||
attr: ScreenBuffer.Attributes | number; | ||
char?: string; | ||
char?: string | undefined; | ||
}): void; | ||
@@ -90,42 +90,42 @@ | ||
interface Options { | ||
width?: number; | ||
height?: number; | ||
width?: number | undefined; | ||
height?: number | undefined; | ||
dst: Terminal | ScreenBuffer; | ||
x?: number; | ||
y?: number; | ||
blending?: boolean; | ||
wrap?: boolean; | ||
noFill?: boolean; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
blending?: boolean | undefined; | ||
wrap?: boolean | undefined; | ||
noFill?: boolean | undefined; | ||
} | ||
interface DrawOptions { | ||
dst?: Terminal | ScreenBuffer; | ||
x?: number; | ||
y?: number; | ||
srcClipRect?: Rect; | ||
dstClipRect?: Rect; | ||
blending?: boolean; | ||
delta?: boolean; | ||
wrap?: boolean | "x" | "y"; | ||
tile?: boolean; | ||
dst?: Terminal | ScreenBuffer | undefined; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
srcClipRect?: Rect | undefined; | ||
dstClipRect?: Rect | undefined; | ||
blending?: boolean | undefined; | ||
delta?: boolean | undefined; | ||
wrap?: boolean | "x" | "y" | undefined; | ||
tile?: boolean | undefined; | ||
} | ||
interface Attributes { | ||
color?: number; | ||
defaultColor?: boolean; | ||
bgColor?: number; | ||
bgDefaultColor?: boolean; | ||
bold?: boolean; | ||
dim?: boolean; | ||
italic?: boolean; | ||
underline?: boolean; | ||
blink?: boolean; | ||
inverse?: boolean; | ||
hidden?: boolean; | ||
strike?: boolean; | ||
transparency?: boolean; | ||
fgTransparency?: boolean; | ||
bgTransparency?: boolean; | ||
styleTransparency?: boolean; | ||
charTransparency?: boolean; | ||
color?: number | undefined; | ||
defaultColor?: boolean | undefined; | ||
bgColor?: number | undefined; | ||
bgDefaultColor?: boolean | undefined; | ||
bold?: boolean | undefined; | ||
dim?: boolean | undefined; | ||
italic?: boolean | undefined; | ||
underline?: boolean | undefined; | ||
blink?: boolean | undefined; | ||
inverse?: boolean | undefined; | ||
hidden?: boolean | undefined; | ||
strike?: boolean | undefined; | ||
transparency?: boolean | undefined; | ||
fgTransparency?: boolean | undefined; | ||
bgTransparency?: boolean | undefined; | ||
styleTransparency?: boolean | undefined; | ||
charTransparency?: boolean | undefined; | ||
} | ||
@@ -138,3 +138,3 @@ | ||
wrap: boolean; | ||
direction?: "right" | "left" | "up" | "down" | null; | ||
direction?: "right" | "left" | "up" | "down" | null | undefined; | ||
dx: number; | ||
@@ -141,0 +141,0 @@ dy: number; |
@@ -17,3 +17,3 @@ import ScreenBuffer = require("./ScreenBuffer"); | ||
url: string, | ||
options: { shrink?: { height: number; width: number } }, | ||
options: { shrink?: { height: number; width: number } | undefined }, | ||
callback: (error: any, image: ScreenBufferHD) => void | ||
@@ -30,7 +30,7 @@ ): void; | ||
attr: ScreenBuffer.Attributes | number; | ||
char?: string; | ||
char?: string | undefined; | ||
} | ||
| { | ||
attr: ScreenBufferHD.Attributes | number; | ||
char?: string; | ||
char?: string | undefined; | ||
} | ||
@@ -47,20 +47,20 @@ ): void; | ||
b: number; | ||
a?: number; | ||
defaultColor?: boolean; | ||
a?: number | undefined; | ||
defaultColor?: boolean | undefined; | ||
bgR: number; | ||
bgG: number; | ||
bgB: number; | ||
bgA?: number; | ||
bgDefaultColor?: boolean; | ||
bold?: boolean; | ||
dim?: boolean; | ||
italic?: boolean; | ||
underline?: boolean; | ||
blink?: boolean; | ||
inverse?: boolean; | ||
hidden?: boolean; | ||
strike?: boolean; | ||
transparency?: boolean; | ||
styleTransparency?: boolean; | ||
charTransparency?: boolean; | ||
bgA?: number | undefined; | ||
bgDefaultColor?: boolean | undefined; | ||
bold?: boolean | undefined; | ||
dim?: boolean | undefined; | ||
italic?: boolean | undefined; | ||
underline?: boolean | undefined; | ||
blink?: boolean | undefined; | ||
inverse?: boolean | undefined; | ||
hidden?: boolean | undefined; | ||
strike?: boolean | undefined; | ||
transparency?: boolean | undefined; | ||
styleTransparency?: boolean | undefined; | ||
charTransparency?: boolean | undefined; | ||
} | ||
@@ -67,0 +67,0 @@ |
@@ -169,4 +169,4 @@ import EventEmitter = require("nextgen-events"); | ||
| { | ||
mouse?: "button" | "drag" | "motion"; | ||
safe?: boolean; | ||
mouse?: "button" | "drag" | "motion" | undefined; | ||
safe?: boolean | undefined; | ||
}, | ||
@@ -201,4 +201,4 @@ safeCallback?: boolean | ||
x: number; | ||
continue?: boolean; | ||
offset?: number; | ||
continue?: boolean | undefined; | ||
offset?: number | undefined; | ||
}): void; | ||
@@ -213,3 +213,3 @@ wrapColumn(x: undefined | number, width: number): void; | ||
abort: () => void; | ||
promise?: Promise<boolean>; | ||
promise?: Promise<boolean> | undefined; | ||
}; | ||
@@ -305,3 +305,3 @@ | ||
value: number, | ||
options?: { innerSize?: number; barStyle?: CTerminal } | ||
options?: { innerSize?: number | undefined; barStyle?: CTerminal | undefined } | ||
): void; | ||
@@ -312,6 +312,6 @@ | ||
options: { | ||
style?: CTerminal; | ||
flashStyle?: CTerminal; | ||
delay?: number; | ||
flashDelay?: number; | ||
style?: CTerminal | undefined; | ||
flashStyle?: CTerminal | undefined; | ||
delay?: number | undefined; | ||
flashDelay?: number | undefined; | ||
}, | ||
@@ -325,6 +325,6 @@ callback: Callback<void> | ||
options?: { | ||
style?: CTerminal; | ||
flashStyle?: CTerminal; | ||
delay?: number; | ||
flashDelay?: number; | ||
style?: CTerminal | undefined; | ||
flashStyle?: CTerminal | undefined; | ||
delay?: number | undefined; | ||
flashDelay?: number | undefined; | ||
} | ||
@@ -339,3 +339,3 @@ ): Promise<void>; | ||
height: number; | ||
}; | ||
} | undefined; | ||
}, | ||
@@ -353,3 +353,3 @@ callback: Callback<void> | ||
height: number; | ||
}; | ||
} | undefined; | ||
} | ||
@@ -378,4 +378,4 @@ ): Promise<void>; | ||
no: string | ReadonlyArray<string>; | ||
echoYes?: string; | ||
echoNo?: string; | ||
echoYes?: string | undefined; | ||
echoNo?: string | undefined; | ||
} | ||
@@ -391,45 +391,45 @@ | ||
interface CreateOptions { | ||
stdin?: NodeJS.Process; | ||
stdout?: NodeJS.Process; | ||
stderr?: NodeJS.Process; | ||
generic?: string; | ||
stdin?: NodeJS.Process | undefined; | ||
stdout?: NodeJS.Process | undefined; | ||
stderr?: NodeJS.Process | undefined; | ||
generic?: string | undefined; | ||
appId: string; | ||
appName: string; | ||
isTTY?: boolean; | ||
isSSH?: boolean; | ||
isTTY?: boolean | undefined; | ||
isSSH?: boolean | undefined; | ||
pid?: any; | ||
preferProcessSigwinch?: boolean; | ||
processSigwinch?: boolean; | ||
preferProcessSigwinch?: boolean | undefined; | ||
processSigwinch?: boolean | undefined; | ||
} | ||
class AutocompletionArray<T> extends Array<T> { | ||
prefix?: string; | ||
postfix?: string; | ||
prefix?: string | undefined; | ||
postfix?: string | undefined; | ||
} | ||
interface HookConfig { | ||
style?: CTerminal; | ||
hintStyle?: CTerminal; | ||
tokenRegExp?: RegExp; | ||
autoComplete?: string[] | Autocompletion; | ||
autoCompleteMenu?: boolean | Autocompletion; | ||
autoCompleteHint?: boolean; | ||
style?: CTerminal | undefined; | ||
hintStyle?: CTerminal | undefined; | ||
tokenRegExp?: RegExp | undefined; | ||
autoComplete?: string[] | Autocompletion | undefined; | ||
autoCompleteMenu?: boolean | Autocompletion | undefined; | ||
autoCompleteHint?: boolean | undefined; | ||
} | ||
interface InputFieldOptions { | ||
echo?: boolean; | ||
echoChar?: string | true; | ||
default?: string; | ||
cursorPosition?: number; | ||
cancelable?: boolean; | ||
style?: CTerminal; | ||
hintStyle?: CTerminal; | ||
maxLength?: number; | ||
minLength?: number; | ||
history?: string[]; | ||
autoComplete?: string[] | Autocompletion; | ||
autoCompleteMenu?: boolean | Autocompletion; | ||
autoCompleteHint?: boolean; | ||
keyBindings?: { [key: string]: string }; | ||
tokenHook?: ( | ||
echo?: boolean | undefined; | ||
echoChar?: string | true | undefined; | ||
default?: string | undefined; | ||
cursorPosition?: number | undefined; | ||
cancelable?: boolean | undefined; | ||
style?: CTerminal | undefined; | ||
hintStyle?: CTerminal | undefined; | ||
maxLength?: number | undefined; | ||
minLength?: number | undefined; | ||
history?: string[] | undefined; | ||
autoComplete?: string[] | Autocompletion | undefined; | ||
autoCompleteMenu?: boolean | Autocompletion | undefined; | ||
autoCompleteHint?: boolean | undefined; | ||
keyBindings?: { [key: string]: string } | undefined; | ||
tokenHook?: (( | ||
token: string, | ||
@@ -440,8 +440,8 @@ isEndOfInput: boolean, | ||
config: HookConfig | ||
) => string | CTerminal | null | void; | ||
tokenResetHook?: ( | ||
) => string | CTerminal | null | void) | undefined; | ||
tokenResetHook?: (( | ||
term: Terminal, | ||
config?: HookConfig | ||
) => string | CTerminal; | ||
tokenRegExp?: RegExp; | ||
) => string | CTerminal) | undefined; | ||
tokenRegExp?: RegExp | undefined; | ||
} | ||
@@ -461,29 +461,29 @@ | ||
interface SingleLineMenuOptions { | ||
y?: number; | ||
separator?: string; | ||
nextPageHint?: string; | ||
previousPageHint?: string; | ||
style?: CTerminal; | ||
selectedStyle?: CTerminal; | ||
keyBindings?: { [key: string]: string }; | ||
cancelable?: boolean; | ||
exitOnUnexpectedKey?: boolean; | ||
y?: number | undefined; | ||
separator?: string | undefined; | ||
nextPageHint?: string | undefined; | ||
previousPageHint?: string | undefined; | ||
style?: CTerminal | undefined; | ||
selectedStyle?: CTerminal | undefined; | ||
keyBindings?: { [key: string]: string } | undefined; | ||
cancelable?: boolean | undefined; | ||
exitOnUnexpectedKey?: boolean | undefined; | ||
} | ||
interface SingleColumnMenuOptions { | ||
y?: number; | ||
style?: CTerminal; | ||
selectedStyle?: CTerminal; | ||
submittedStyle?: CTerminal; | ||
leftPadding?: string; | ||
selectedLeftPadding?: string; | ||
submittedLeftPadding?: string; | ||
extraLines?: number; | ||
oneLineItem?: boolean; | ||
itemMaxWidth?: number; | ||
continueOnSubmit?: boolean; | ||
selectedIndex?: number; | ||
keyBindings?: { [key: string]: string }; | ||
cancelable?: boolean; | ||
exitOnUnexpectedKey?: boolean; | ||
y?: number | undefined; | ||
style?: CTerminal | undefined; | ||
selectedStyle?: CTerminal | undefined; | ||
submittedStyle?: CTerminal | undefined; | ||
leftPadding?: string | undefined; | ||
selectedLeftPadding?: string | undefined; | ||
submittedLeftPadding?: string | undefined; | ||
extraLines?: number | undefined; | ||
oneLineItem?: boolean | undefined; | ||
itemMaxWidth?: number | undefined; | ||
continueOnSubmit?: boolean | undefined; | ||
selectedIndex?: number | undefined; | ||
keyBindings?: { [key: string]: string } | undefined; | ||
cancelable?: boolean | undefined; | ||
exitOnUnexpectedKey?: boolean | undefined; | ||
} | ||
@@ -502,14 +502,14 @@ | ||
interface GridMenuOptions { | ||
y?: number; | ||
x?: number; | ||
width?: number; | ||
style?: CTerminal; | ||
selectedStyle?: CTerminal; | ||
leftPadding?: string; | ||
selectedLeftPadding?: string; | ||
rightPadding?: string; | ||
selectedRightPadding?: string; | ||
itemMaxWidth?: number; | ||
keyBindings?: { [key: string]: string }; | ||
exitOnUnexpectedKey?: boolean; | ||
y?: number | undefined; | ||
x?: number | undefined; | ||
width?: number | undefined; | ||
style?: CTerminal | undefined; | ||
selectedStyle?: CTerminal | undefined; | ||
leftPadding?: string | undefined; | ||
selectedLeftPadding?: string | undefined; | ||
rightPadding?: string | undefined; | ||
selectedRightPadding?: string | undefined; | ||
itemMaxWidth?: number | undefined; | ||
keyBindings?: { [key: string]: string } | undefined; | ||
exitOnUnexpectedKey?: boolean | undefined; | ||
} | ||
@@ -526,21 +526,21 @@ | ||
interface ProgressBarOptions { | ||
width?: number; | ||
percent?: boolean; | ||
eta?: boolean; | ||
items?: number; | ||
title?: string; | ||
barStyle?: CTerminal; | ||
barBracketStyle?: CTerminal; | ||
percentStyle?: CTerminal; | ||
etaStyle?: CTerminal; | ||
itemStyle?: CTerminal; | ||
titleStyle?: CTerminal; | ||
itemSize?: number; | ||
titleSize?: number; | ||
barChar?: string; | ||
barHeadChar?: string; | ||
maxRefreshTime?: number; | ||
minRefreshTime?: number; | ||
inline?: boolean; | ||
syncMode?: boolean; | ||
width?: number | undefined; | ||
percent?: boolean | undefined; | ||
eta?: boolean | undefined; | ||
items?: number | undefined; | ||
title?: string | undefined; | ||
barStyle?: CTerminal | undefined; | ||
barBracketStyle?: CTerminal | undefined; | ||
percentStyle?: CTerminal | undefined; | ||
etaStyle?: CTerminal | undefined; | ||
itemStyle?: CTerminal | undefined; | ||
titleStyle?: CTerminal | undefined; | ||
itemSize?: number | undefined; | ||
titleSize?: number | undefined; | ||
barChar?: string | undefined; | ||
barHeadChar?: string | undefined; | ||
maxRefreshTime?: number | undefined; | ||
minRefreshTime?: number | undefined; | ||
inline?: boolean | undefined; | ||
syncMode?: boolean | undefined; | ||
} | ||
@@ -552,3 +552,3 @@ | ||
| number | ||
| { progress: number | null; items?: number; title?: string } | ||
| { progress: number | null; items?: number | undefined; title?: string | undefined } | ||
) => void; | ||
@@ -555,0 +555,0 @@ startItem: (name: string) => void; |
@@ -85,11 +85,11 @@ import ScreenBuffer = require("./ScreenBuffer"); | ||
dst: ScreenBuffer; | ||
width?: number; | ||
height?: number; | ||
x?: number; | ||
y?: number; | ||
tabWidth?: number; | ||
forceInBound?: number; | ||
hidden?: boolean; | ||
wrap?: boolean; | ||
width?: number | undefined; | ||
height?: number | undefined; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
tabWidth?: number | undefined; | ||
forceInBound?: number | undefined; | ||
hidden?: boolean | undefined; | ||
wrap?: boolean | undefined; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
28475
0