Installation
npm install --save @types/window-size
Summary
This package contains type definitions for window-size (https://github.com/jonschlinkert/window-size).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/window-size.
declare module "window-size" {
import { WriteStream } from "fs";
const windowSize: windowSize.Size & {
get(options?: windowSize.WindowSizeOptions): windowSize.Size;
env(): windowSize.Size;
tty(options: windowSize.TtySizeOptions): windowSize.Size;
tput(): windowSize.Size;
win(): windowSize.Size;
};
export = windowSize;
namespace windowSize {
export interface Size {
width: number;
height: number;
type: string;
}
type StreamSizeOptions = Record<string, WriteStream>;
interface TtySizeOptions {
tty?: {
getWindowSize?: (out: WriteStream) => [number, number];
};
}
type WindowSizeOptions = StreamSizeOptions & TtySizeOptions;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node
Credits
These definitions were written by Juer Whang.