mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
21 lines
323 B
TypeScript
21 lines
323 B
TypeScript
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;
|