just.deprecate(member, type, optionsnullable)
Show a warning in the console, or throw an Error if called.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| member | string | The member's name. E.g.: ".deprecate()" | |||||||||
| type | string | "warning" or "error". Otherwise it logs the error using console.error(). | |||||||||
| options [nullable] | object | Properties
|
Throws:
If type is set to "error".
- Type
- Error
