Namespace: deprecate

just.deprecate(member, type, optionsnullable)

Show a warning in the console, or throw an Error if called.
Since:
1.0.0-rc.23
Source:
deprecate.js, line 16

Parameters:

NameTypeDescription
member
stringThe member's name. E.g.: ".deprecate()"
type
string"warning" or "error". Otherwise it logs the error using console.error().
options
[nullable]
object

Properties

NameTypeDescription
since
[nullable]
stringSome string.
message
[nullable]
stringA message to append to the default message.

Throws:

If type is set to "error".
Type
Error