mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
13 lines
573 B
TypeScript
13 lines
573 B
TypeScript
|
/**
|
||
|
* Calls `console.warn` with the provided arguments, but only if the forum is in debug mode.
|
||
|
*
|
||
|
* This function is intended to provide warnings to extension developers about issues with
|
||
|
* their extensions that may not be easily noticed when testing, such as accessibility
|
||
|
* issues.
|
||
|
*
|
||
|
* These warnings should be hidden on production forums to ensure webmasters are not
|
||
|
* inundated with do-gooders telling them they have an issue when it isn't something they
|
||
|
* can fix.
|
||
|
*/
|
||
|
export default function fireDebugWarning(...args: Parameters<typeof console.warn>): void;
|