@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
24 lines (23 loc) • 825 B
TypeScript
import type { ESLBaseElementShape } from '../../esl-base-element/core/esl-base-element.shape';
import type { ESLRandomText } from './esl-random-text';
export interface ESLRandomTextTagShape extends ESLBaseElementShape<ESLRandomText> {
/**
* Choose words randomly from {@link DICTIONARY} rather than sequentially
* @see ESLRandomText#shuffle
*/
shuffle: boolean;
/**
* Maximum number of paragraphs in generated text
* @see ESLRandomText#paragraphs
*/
paragraphs: number;
/**
* Maximum number of words in paragraph
* @see ESLRandomText#wordsPerParagraph
*/
wordsPerParagraph: number;
/** No children allowed */
children: never | [];
}
/** @deprecated alias for {@link ESLRandomTextTagShape} */
export type ESLRandomTextShape = ESLRandomTextTagShape;