Skip to main content
Module

x/abstruct/utils.ts>createInst

Abstract structure for JavaScript data validation
Go to Latest
function createInst
import { createInst } from "https://deno.land/x/abstruct@1.0.0-beta.12/utils.ts";

Create instance

Type Parameters

Args extends readonly unknown[]
R

Parameters

ctor: { new (...args: Args): R; }

Returns

(...args: Args) => R