Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function factory
import { factory } from "https://deno.land/x/fathym_atomic_chat@v0.0.41/src/src.deps.ts";

Type Parameters

T extends { new (...args: any[]): any; }

Parameters

type: T
optional
data: InstanceType<T>

Returns

InstanceType<T>