fox-slack-block-builder
Version:
Maintainable code for interactive Slack messages, modals, home tabs, and workflow steps. A must-have for the Slack Block Kit framework.
10 lines (9 loc) • 440 B
TypeScript
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): Readonly<T>;
static pruneUndefinedFromArray<T>(array: T[]): T[];
}