PluginProbe
Parse.ly / 3.14.0
Parse.ly v3.14.0
3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 3.20.3 All 105 releases
wp-parsely / src / @types / gutenberg / types.ts

types.ts in Parse.ly 3.14.0, at src/@types/gutenberg/types.ts

21 lines 598 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // eslint-disable-next-line import/named
2 import { BlockInstance } from '@wordpress/blocks';
3
4 /**
5 * Defines typings for some non-exported Gutenberg functions to avoid
6 * intellisense errors in function calls.
7 *
8 * This can be removed once Gutenberg provides typings for these functions.
9 *
10 * @since 3.12.0
11 */
12 export interface GutenbergFunction {
13 getEditedPostAttribute( attribute: string ): string;
14 getEditedPostContent(): string;
15 getSelectedBlock(): BlockInstance | null;
16 getBlock( clientId: string ): BlockInstance | null;
17 getBlocks(): BlockInstance[];
18 getPermalink(): string | null;
19 }
20
21