Module

std/node/sys.ts>deprecate

Deno standard library
Go to Latest
function deprecate
import { deprecate } from "https://dotland.deno.dev/std@0.110.0/node/sys.ts";

Type Parameters

T extends (...args: any) => any

Parameters

fn: T

This implementation of deprecate won't apply the deprecation code

msg: string
optional
_code: string

Returns

(...args: Parameters<T>) => ReturnType<T>