@wp-typia/block-types 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,3 +21,11 @@ export declare const BLOCK_VARIATION_SCOPES: readonly ["block", "inserter", "tra
|
|
|
21
21
|
export type BlockVariation<TAttributes extends BlockAttributes = BlockAttributes> = WordPressBlockVariation<TAttributes>;
|
|
22
22
|
export type RegisteredBlockType<TAttributes extends BlockAttributes = BlockAttributes> = WordPressRegisteredBlockType<TAttributes>;
|
|
23
23
|
export type RegisterBlockTypeResult<TAttributes extends BlockAttributes = BlockAttributes> = RegisteredBlockType<TAttributes> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Runtime shim for scaffolded registrations.
|
|
26
|
+
*
|
|
27
|
+
* Generated projects keep strong typing around scaffold metadata while
|
|
28
|
+
* centralizing the compatibility cast required by the currently published
|
|
29
|
+
* `@wordpress/blocks` registration surface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function registerScaffoldBlockType<TAttributes extends BlockAttributes = BlockAttributes, TSettings extends object = object>(blockName: string, settings: TSettings): RegisterBlockTypeResult<TAttributes>;
|