Skip to content

Make most console methods to accept Any instead of js.Any #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/main/scala/org/scalajs/dom/raw/lib.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7441,12 +7441,12 @@ trait Console extends js.Object {
*
* MDN
*/
def info(message: js.Any, optionalParams: js.Any*): Unit = js.native
def info(message: Any, optionalParams: Any*): Unit = js.native

def profile(reportName: String = js.native): Unit = js.native

def assert(test: Boolean, message: String,
optionalParams: js.Any*): Unit = js.native
optionalParams: Any*): Unit = js.native

def clear(): Unit = js.native

Expand All @@ -7457,7 +7457,7 @@ trait Console extends js.Object {
*
* MDN
*/
def dir(value: js.Any, optionalParams: js.Any*): Unit = js.native
def dir(value: Any, optionalParams: Any*): Unit = js.native

/**
* Displays an interactive tree of the descendant elements of the specified XML/HTML element.
Expand All @@ -7467,39 +7467,39 @@ trait Console extends js.Object {
*
* MDN
*/
def dirxml(value: js.Any): Unit = js.native
def dirxml(value: Any): Unit = js.native

/**
* Outputs a warning message. You may use string substitution and additional
* arguments with this method. See Using string substitutions.
*
* MDN
*/
def warn(message: js.Any, optionalParams: js.Any*): Unit = js.native
def warn(message: Any, optionalParams: Any*): Unit = js.native

/**
* Outputs an error message. You may use string substitution and additional
* arguments with this method. See Using string substitutions.
*
* MDN
*/
def error(message: js.Any, optionalParams: js.Any*): Unit = js.native
def error(message: Any, optionalParams: Any*): Unit = js.native

/**
* For general output of logging information. You may use string substitution and
* additional arguments with this method. See Using string substitutions.
*
* MDN
*/
def log(message: js.Any, optionalParams: js.Any*): Unit = js.native
def log(message: Any, optionalParams: Any*): Unit = js.native

/**
* Outputs a debug message. You may use string substitution and additional
* arguments with this method. See Using string substitutions.
*
* MDN
*/
def debug(message: js.Any, optionalParams: js.Any*): Unit = js.native
def debug(message: Any, optionalParams: Any*): Unit = js.native

/**
* Displays tabular data as a table.
Expand Down