Skip to content

Extend the API to accept Rest Parameters #3

@neonish

Description

@neonish

Hi. First of all - great plugin!

As this is supposed to be a complete implementation of the Console interface, I have one minor extension proposal.

I usually pass multiple parameters such as strings combined with nubmers and objects to my log statements.
E.g.: console.log("Http GET result #", i, "-->", myResult);.

Object-parameters are being parsed by JSON.stringify() before being appended to the log string.

The actual Console API for log() looks like this log(message?: any, ...optionalParams: any[]): void;.

If you're open to extending the plugins interface to support Rest Parameters and any-Types, I'd be happy to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions