From d57042cd78058df9bfbc52ff6af642cf25e08b39 Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Fri, 22 Nov 2024 09:30:53 +0100 Subject: [PATCH] revert: "fix(core): update the typings to be that options and storage are partials on an extended config #5852 (#5854)" This reverts commit 87d63d8d1761138add50e05d584e6f24d99daf9c. --- packages/core/src/Extension.ts | 4 ++-- packages/core/src/Mark.ts | 4 ++-- packages/core/src/Node.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/Extension.ts b/packages/core/src/Extension.ts index ae5870837..fa649aa34 100644 --- a/packages/core/src/Extension.ts +++ b/packages/core/src/Extension.ts @@ -474,9 +474,9 @@ export class Extension { } extend( - extendedConfig: Partial, Partial>> = {}, + extendedConfig: Partial> = {}, ) { - const extension = new Extension({ ...this.config, ...extendedConfig } as ExtensionConfig) + const extension = new Extension({ ...this.config, ...extendedConfig }) extension.parent = this diff --git a/packages/core/src/Mark.ts b/packages/core/src/Mark.ts index 3200f705f..ea57edd7f 100644 --- a/packages/core/src/Mark.ts +++ b/packages/core/src/Mark.ts @@ -606,9 +606,9 @@ export class Mark { } extend( - extendedConfig: Partial, Partial>> = {}, + extendedConfig: Partial> = {}, ) { - const extension = new Mark(extendedConfig as MarkConfig) + const extension = new Mark(extendedConfig) extension.parent = this diff --git a/packages/core/src/Node.ts b/packages/core/src/Node.ts index 05ef81539..567e0eef7 100644 --- a/packages/core/src/Node.ts +++ b/packages/core/src/Node.ts @@ -816,9 +816,9 @@ export class Node { } extend( - extendedConfig: Partial, Partial>> = {}, + extendedConfig: Partial> = {}, ) { - const extension = new Node(extendedConfig as NodeConfig) + const extension = new Node(extendedConfig) extension.parent = this