Module

std/node/util.ts>inherits

Deno standard library
Go to Latest
function inherits
import { inherits } from "https://dotland.deno.dev/std@0.110.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.