protoobject
Version:
A universal class for creating any JSON objects and simple manipulations with them.
10 lines (9 loc) • 521 B
TypeScript
import { ProtoObjectDynamicMethods } from "../types/dynamic-methods";
import { ProtoObjectStaticMethods } from "../types/static-methods";
/**
* A factory for creating classes based on the ProtoObject class
*
* @param methods - Methods that should be updated in the class being created.
* @returns - an ProtoObject's heir
*/
export declare function protoObjectFactory<T extends ProtoObjectDynamicMethods<T>>(methods?: Partial<ProtoObjectStaticMethods<T> & ProtoObjectDynamicMethods<T>>): ProtoObjectStaticMethods<T>;