Skip to content

Commit

Permalink
Officially deprecate the @wordpress/element package
Browse files Browse the repository at this point in the history
  • Loading branch information
lipemat committed Nov 10, 2023
1 parent 5bc0f20 commit 830848f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wordpress__element/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,28 @@
*
* @note You probably don't need to use this.
*
* @deprecated Gutenberg has remove all uses of this package and documentation.
*
* @link https://developer.wordpress.org/block-editor/reference-guides/packages/packages-element/
*/
declare module '@wordpress/element' {
import {ComponentType} from '@lipemat/js-boilerplate/helpers';
import {useEffect as reactUseEffect, useState as reactUseState} from 'react';
import {render as reactRender} from 'react-dom';

/**
* @deprecated
*/
export const Fragment: ComponentType<{}>;

/**
* @deprecated
*/
export const useEffect: typeof reactUseEffect;

/**
* @deprecated
*/
export const useState: typeof reactUseState;

/**
Expand Down

0 comments on commit 830848f

Please sign in to comment.