Go to Latest
function warnOnDeprecatedApi
import { warnOnDeprecatedApi } from "https://dotland.deno.dev/std@0.215.0/internal/warn_on_deprecated_api.ts";

Prints 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: WarnDeprecatedApiConfig