diff --git a/types/wordpress__blocks/index.d.ts b/types/wordpress__blocks/index.d.ts index c40455dbc1..1acd0dd1f9 100644 --- a/types/wordpress__blocks/index.d.ts +++ b/types/wordpress__blocks/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for @wordpress/blocks 6.4 // Project: https://github.com/WordPress/gutenberg/tree/master/packages/blocks/README.md // Definitions by: Derek Sifford +// Jon Surrell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.6 @@ -272,6 +273,12 @@ export namespace AttributeSource { default?: string; }); + interface Children { + source: 'children'; + type: 'array'; + selector?: string; + } + interface HTML { source: 'html'; type: 'string'; @@ -327,6 +334,7 @@ export namespace AttributeSource { export type BlockAttribute = | AttributeSource.Attribute + | AttributeSource.Children | AttributeSource.HTML | AttributeSource.Meta | AttributeSource.Query