@types/wordpress__block-serialization-spec-parser
TypeScript icon, indicating that this package has built-in type declarations

3.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/wordpress__block-serialization-spec-parser

Weekly Downloads

731

Version

3.1.3

License

MIT

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • types