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

Type Parameters

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

Parameters

type: T
optional
data: InstanceType<T>

Returns

InstanceType<T>