Questionnaire-of-the-Facebo.../node_modules/term-size/index.d.ts

22 lines
323 B
TypeScript
Raw Permalink Normal View History

2021-03-11 01:43:28 +00:00
declare namespace terminalSize {
interface Size {
columns: number;
rows: number;
}
}
/**
Reliably get the terminal window size.
@example
```
import terminalSize = require('term-size');
terminalSize();
//=> {columns: 143, rows: 24}
```
*/
declare function terminalSize(): terminalSize.Size;
export = terminalSize;