export class LexicalNode {
// Allow us to look up the type including static props
- ['constructor']!: KlassConstructor<typeof LexicalNode>;
+ declare ['constructor']: KlassConstructor<typeof LexicalNode>;
/** @internal */
__type: string;
/** @internal */
/** @noInheritDoc */
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class DecoratorNode<T> extends LexicalNode {
- ['constructor']!: KlassConstructor<typeof DecoratorNode<T>>;
+ declare ['constructor']: KlassConstructor<typeof DecoratorNode<T>>;
constructor(key?: NodeKey) {
super(key);
}
/** @noInheritDoc */
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class ElementNode extends LexicalNode {
- ['constructor']!: KlassConstructor<typeof ElementNode>;
+ declare ['constructor']: KlassConstructor<typeof ElementNode>;
/** @internal */
__first: null | NodeKey;
/** @internal */
/** @noInheritDoc */
export class LineBreakNode extends LexicalNode {
- ['constructor']!: KlassConstructor<typeof LineBreakNode>;
+ declare ['constructor']: KlassConstructor<typeof LineBreakNode>;
static getType(): string {
return 'linebreak';
}
/** @noInheritDoc */
export class ParagraphNode extends CommonBlockNode {
- ['constructor']!: KlassConstructor<typeof ParagraphNode>;
+ declare ['constructor']: KlassConstructor<typeof ParagraphNode>;
/** @internal */
__textFormat: number;
__textStyle: string;
/** @noInheritDoc */
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class TextNode extends LexicalNode {
- ['constructor']!: KlassConstructor<typeof TextNode>;
+ declare ['constructor']: KlassConstructor<typeof TextNode>;
__text: string;
/** @internal */
__format: number;
"include": ["resources/js/**/*"],
"exclude": ["resources/js/wysiwyg/lexical/yjs/*"],
"compilerOptions": {
- "target": "es2019",
+ "target": "es2022",
"module": "commonjs",
"rootDir": "./resources/js/",
"baseUrl": "./",