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_design_kit@v0.0.68/src/src.deps.ts";

Type Parameters

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

Parameters

type: T
optional
data: InstanceType<T>

Returns

InstanceType<T>