UNPKG

fox-block-builder

Version:

Maintainable code for loop slack-block-kit-like modal builder

10 lines (9 loc) 430 B
import type { ObjectLiteral, Ctor } from '../types'; export declare abstract class Builder { protected readonly props: ObjectLiteral; constructor(params?: ObjectLiteral); protected set(value: unknown, prop: string): this; protected append(value: unknown[], prop: string): this; protected getResult<T>(Clazz: Ctor<T>, overrideProps?: ObjectLiteral): T; static pruneUndefinedFromArray<T>(array: T[]): T[]; }