Skip to main content
Module

std/node/sys.ts>deprecate

Deno standard library
Go to Latest
function deprecate
import { deprecate } from "https://deno.land/std@0.113.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>