From 734d4c26e0b5e050f1237f7fdd2014a74f0f39e3 Mon Sep 17 00:00:00 2001 From: Mateusz Baginski Date: Fri, 7 Jun 2024 11:47:26 +0200 Subject: [PATCH] Adjust context typing --- src/ckeditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ckeditor.tsx b/src/ckeditor.tsx index 187fd095..993f7ad8 100644 --- a/src/ckeditor.tsx +++ b/src/ckeditor.tsx @@ -5,7 +5,7 @@ /* globals window */ -import React from 'react'; +import React, { type ContextType } from 'react'; import PropTypes, { type InferProps, type Validator } from 'prop-types'; import type { @@ -96,7 +96,7 @@ export default class CKEditor extends React.Component>, _: Readonly, - nextContext: any + nextContext: ContextType ): boolean { const { context, props, editorSemaphore } = this;