Skip to content

Commit

Permalink
Adjust context typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Jun 7, 2024
1 parent 8b5f956 commit 734d4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ckeditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -96,7 +96,7 @@ export default class CKEditor<TEditor extends Editor> extends React.Component<Pr
public override shouldComponentUpdate(
nextProps: Readonly<Props<TEditor>>,
_: Readonly<unknown>,
nextContext: any
nextContext: ContextType<typeof ContextWatchdogContext>
): boolean {
const { context, props, editorSemaphore } = this;

Expand Down

0 comments on commit 734d4c2

Please sign in to comment.