UNPKG

@webuildbots/webuildbots-sdk

Version:
17 lines (16 loc) 669 B
import { TextOverflow } from '../../const/text-overflow-enums'; import Block from '../../interfaces/block'; import Polylang from '../../interfaces/polylang'; import Polyphrase from '../../interfaces/polyphrase'; import BlockBuilder from './block-builder'; import { DeepPartial } from '../../helpers/helpers-types'; /** * @depreciated - Use {@link BasicBB} instead */ export default class TextBB extends BlockBuilder { constructor(overflow?: TextOverflow); addText(lang: string, text: string, textKey?: string): this; setText(polylang: Polylang, textKey?: string): this; setAllText(source: Polyphrase | Block): this; build(): DeepPartial<Block>; }