UNPKG

fox-block-builder

Version:

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

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