Creates a deprecation helper for a deprecated entity.
This helper is used to print a deprecation warning to the browser console
when the deprecated functionality is being used.
Returns a function that should be called when the deprecated entity is being used.
The function will print a deprecation warning when usage is detected for the first time.
Any further calls will have no effect to prevent spamming the console.
NOTE: Deprecation warnings are only printed in development builds.
Creates a deprecation helper for a deprecated entity.
This helper is used to print a deprecation warning to the browser console when the deprecated functionality is being used.
Returns a function that should be called when the deprecated entity is being used. The function will print a deprecation warning when usage is detected for the first time. Any further calls will have no effect to prevent spamming the console.
Example: