Module

std/node/util.ts>inherits

Deno standard library
Go to Latest
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.