Skip to main content
Module

x/mixwithts/mod.ts>HasInstance

TypeScript compatible version of Justin Fagani's mixin library for ES6
Latest
variable HasInstance
import { HasInstance } from "https://deno.land/x/mixwithts@1.1.2/mod.ts";

Adds a Symbol.hasInstance implementation to the provided mixin object to enable the use of the instanceof operator with instances of classes that include the mixin.

type

<T>(mixin: T) => unknown