@types/xrandr
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Installation

npm install --save @types/xrandr

Summary

This package contains type definitions for xrandr (https://github.com/carlipa/node-xrandr#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xrandr.

export interface Interface {
    connected: boolean;
    modes: Mode[];
    rotation: "normal" | "left" | "right" | "inverted";
    position: {
        x: number;
        y: number;
    };
}

export interface Mode {
    width: number;
    height: number;
    rate: number;
    native?: boolean;
    current?: boolean;
    interlaced?: boolean;
}

export type XrandrResult = Record<string, Interface>;

export function parser(input: string): XrandrResult;

Additional Details

  • Last updated: Thu, 28 Mar 2024 19:06:35 GMT
  • Dependencies: none

Credits

These definitions were written by Javier Infante.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xrandr

Weekly Downloads

9

Version

1.3.0

License

MIT

Unpacked Size

3.44 kB

Total Files

5

Last publish

Collaborators

  • types