Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/node/util.ts>inherits

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function inherits
import { inherits } from "https://deno.land/std@0.145.0/node/util.ts";

Parameters

ctor: new (...args: unknown[]) => T

Constructor function which needs to inherit the prototype.

superCtor: new (...args: unknown[]) => U

Constructor function to inherit prototype from.