NPM Build Utilities @ 0.1.3
    Preparing search index...

    Interface VarInspectInternal

    Shape of the variable inspection utility class to be available in each Logger.

    VariableInspector Used to inspect variables.

    0.1.0-alpha

    interface VarInspect {
        debug(
            variable: TestType | { [key: string]: TestType },
            level: number,
            msgArgs?: Partial<BulkMsgArgs>,
            timeArgs?: Partial<BulkMsgArgs>,
        ): void;
        log(
            variable: TestType | { [key: string]: TestType },
            level: number,
            msgArgs?: Partial<BulkMsgArgs>,
            timeArgs?: Partial<BulkMsgArgs>,
        ): void;
        progress(
            variable: TestType | { [key: string]: TestType },
            level: number,
            msgArgs?: Partial<BulkMsgArgs>,
            timeArgs?: Partial<BulkMsgArgs>,
        ): void;
        stringify(
            variable: TestType | { [key: string]: TestType },
            args?: Partial<Args>,
        ): string;
        verbose(
            variable: TestType | { [key: string]: TestType },
            level: number,
            msgArgs?: Partial<BulkMsgArgs>,
            timeArgs?: Partial<BulkMsgArgs>,
        ): void;
    }

    Implemented by

    Index

    Methods

    • Internal

      Prints a timestamped log message to the console.

      Parameters

      • variable: TestType | { [key: string]: TestType }

        Variable to inspect. See VariableInspector.

      • level: number

        Depth level for this message.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Outputs a default-level message of the variable.

      Parameters

      • variable: TestType | { [key: string]: TestType }

        Variable to inspect. See VariableInspector.

      • Optionalargs: Partial<Args>

        Override arguments for converting the variable.

      Returns string