Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/util.ts>deprecate

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function deprecate
import { deprecate } from "https://deno.land/std@0.92.0/node/util.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>