function warnOnDeprecatedApi
warnOnDeprecatedApi(config: WarnDeprecatedApiConfig): voidPrints a warning message to the console for the given deprecated API.
These warnings can be disabled by setting DENO_NO_DEPRECATION_WARNINGS=1
in the current process.
Mostly copied from https://github.com/denoland/deno/blob/c62615bfe5a070c2517f3af3208d4308c72eb054/runtime/js/99_main.js#L101.
Parameters
config: WarnDeprecatedApiConfigReturn Type
void