UNPKG

fox-block-builder

Version:

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

21 lines (20 loc) 997 B
import { BlockBuilderBase } from '../internal/base'; import { Access, Analytics, AsTitle, BlockId, BuildToJSON, BuildToObject, DispatchAction, Element, End, ForTeams, GetValue, Hint, Label, Optional } from '../internal/methods'; import type { InputElementBuilder } from '../internal/types'; import { FoxInputBlock } from '../internal/interfaces/blocks.interfaces'; import { CustomField, NoSubmit, OnChange } from '../internal/methods/set-methods'; export interface InputParams { blockId: string; hint?: string; label?: string; forTeams?: string[]; noSubmit?: boolean; } export interface InputBuilder extends BlockId, DispatchAction, Element<InputElementBuilder>, End, Hint, Label, Optional, Access, AsTitle, Analytics, GetValue, BuildToJSON, BuildToObject<FoxInputBlock>, CustomField, ForTeams, OnChange, NoSubmit { } /** * @@link https://api.slack.com/reference/block-kit/blocks#input * @@displayName Input */ export declare class InputBuilder extends BlockBuilderBase { }