0.1.35 • Published 6 months ago

@types/eyes v0.1.35

Weekly downloads
6,226
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/eyes

Summary

This package contains type definitions for eyes (https://github.com/cloudhead/eyes.js).

Details

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

index.d.ts

// Type definitions for eyes 0.1.8
// Project: https://github.com/cloudhead/eyes.js
// Definitions by: bryn austin bellomy <https://github.com/brynbellomy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

///<reference types="node"/>


import stream = require('stream');

export declare function inspector(options?: EyesOptions): InspectorFunction;
export declare function inspect(thing: any, label?: string): void;

export interface InspectorFunction {
    (thing: any, label?: string): string;
}

export interface EyesOptions {
    /** Styles applied to stdout */
    styles?: {
        /** Overall base style applied to everything */
        all?: string | undefined;
        /** Style when printing inspection labels, like 'array' in `array: [1, 2, 3]` */
        label?: string | undefined;
        /** Style when printing objects which don't have a literal representation, such as functions */
        other?: string | undefined;
        /** Style when printing the keys in object literals, like 'a' in `{a: 1}` */
        key?: string | undefined;
        /** Style when printing `null`, `undefined`, etc. */
        special?: string | undefined;
        /** Style when printing strings */
        string?: string | undefined;
        /** Style when printing numbers */
        number?: string | undefined;
        /** Style when printing booleans */
        bool?: string | undefined;
        /** Style when printing RegExps */
        regexp?: string | undefined;
    } | undefined;

    /** Indent object literals */
    pretty?: boolean | undefined;
    /** Don't output functions at all */
    hideFunctions?: boolean | undefined;
    /** Stream to write to, or null */
    stream?: NodeJS.WritableStream | undefined;
    /** Truncate output if longer */
    maxLength?: number | undefined;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:25 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by bryn austin bellomy.

0.1.33

8 months ago

0.1.34

7 months ago

0.1.35

6 months ago

0.1.32

3 years ago

0.1.31

7 years ago

0.1.30

8 years ago

0.1.29

8 years ago

0.1.28-alpha

8 years ago

0.1.27-alpha

8 years ago

0.1.26-alpha

8 years ago

0.1.25-alpha

8 years ago

0.1.24-alpha

8 years ago

0.1.23-alpha

8 years ago

0.1.22-alpha

8 years ago

0.1.17-alpha

8 years ago

0.1.16-alpha

8 years ago