@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
30 lines (29 loc) • 908 B
TypeScript
import type { ESLBaseElementShape } from '../../esl-base-element/core/esl-base-element.shape';
import type { ESLRandomText } from './esl-random-text';
export interface ESLRandomTextShape 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 | [];
}
declare global {
namespace JSX {
interface IntrinsicElements {
/** {@link ESLRandomTextShape} custom tag */
'esl-random-text': ESLRandomTextShape;
}
}
}