UNPKG

jodit

Version:

Jodit is an awesome and useful wysiwyg editor with filebrowser

21 lines (20 loc) 818 B
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net */ /** * [[include:core/decorators/component/README.md]] * @packageDocumentation * @module decorators/component */ import type { IComponent } from "../../../types/index"; export interface ComponentCompatible<T = IComponent> { new (...constructorArgs: any[]): T; } /** * Decorate components and set status isReady after constructor * @param constructorFunction - Component constructor class */ export declare function component<T extends ComponentCompatible>(constructorFunction: T): T; export declare function getComponentClass<T extends IComponent>(name: string): ComponentCompatible<T>;