File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
resources/js/wysiwyg/lexical/core Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export type NodeKey = string;
175
175
176
176
export class LexicalNode {
177
177
// Allow us to look up the type including static props
178
- [ 'constructor' ] ! : KlassConstructor < typeof LexicalNode > ;
178
+ declare [ 'constructor' ] : KlassConstructor < typeof LexicalNode > ;
179
179
/** @internal */
180
180
__type : string ;
181
181
/** @internal */
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export interface DecoratorNode<T> {
24
24
/** @noInheritDoc */
25
25
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
26
26
export class DecoratorNode < T > extends LexicalNode {
27
- [ 'constructor' ] ! : KlassConstructor < typeof DecoratorNode < T > > ;
27
+ declare [ 'constructor' ] : KlassConstructor < typeof DecoratorNode < T > > ;
28
28
constructor ( key ?: NodeKey ) {
29
29
super ( key ) ;
30
30
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export interface ElementNode {
55
55
/** @noInheritDoc */
56
56
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
57
57
export class ElementNode extends LexicalNode {
58
- [ 'constructor' ] ! : KlassConstructor < typeof ElementNode > ;
58
+ declare [ 'constructor' ] : KlassConstructor < typeof ElementNode > ;
59
59
/** @internal */
60
60
__first : null | NodeKey ;
61
61
/** @internal */
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export type SerializedLineBreakNode = SerializedLexicalNode;
22
22
23
23
/** @noInheritDoc */
24
24
export class LineBreakNode extends LexicalNode {
25
- [ 'constructor' ] ! : KlassConstructor < typeof LineBreakNode > ;
25
+ declare [ 'constructor' ] : KlassConstructor < typeof LineBreakNode > ;
26
26
static getType ( ) : string {
27
27
return 'linebreak' ;
28
28
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export type SerializedParagraphNode = Spread<
44
44
45
45
/** @noInheritDoc */
46
46
export class ParagraphNode extends CommonBlockNode {
47
- [ 'constructor' ] ! : KlassConstructor < typeof ParagraphNode > ;
47
+ declare [ 'constructor' ] : KlassConstructor < typeof ParagraphNode > ;
48
48
/** @internal */
49
49
__textFormat : number ;
50
50
__textStyle : string ;
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ export interface TextNode {
284
284
/** @noInheritDoc */
285
285
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
286
286
export class TextNode extends LexicalNode {
287
- [ 'constructor' ] ! : KlassConstructor < typeof TextNode > ;
287
+ declare [ 'constructor' ] : KlassConstructor < typeof TextNode > ;
288
288
__text : string ;
289
289
/** @internal */
290
290
__format : number ;
Original file line number Diff line number Diff line change 2
2
"include" : [" resources/js/**/*" ],
3
3
"exclude" : [" resources/js/wysiwyg/lexical/yjs/*" ],
4
4
"compilerOptions" : {
5
- "target" : " es2019 " ,
5
+ "target" : " es2022 " ,
6
6
"module" : " commonjs" ,
7
7
"rootDir" : " ./resources/js/" ,
8
8
"baseUrl" : " ./" ,
You can’t perform that action at this time.
0 commit comments