Installation
npm install --save @types/wordpress__block-serialization-spec-parser
Summary
This package contains type definitions for @wordpress/block-serialization-spec-parser (https://github.com/WordPress/gutenberg/tree/master/packages/block-serialization-spec-parser/README.md).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__block-serialization-spec-parser.
index.d.ts
export interface Block {
blockName: string | null;
attrs: Record<string, any>;
innerBlocks: readonly Block[];
innerHTML: string;
innerContent: readonly string[];
}
export function parse(rawHtml: string): readonly Block[];
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Derek Sifford.