Skip to main content

Function: isValidBlock()

function isValidBlock(block): block is Block

Checks if the provided block is valid.

Parameters

ParameterTypeDescription

block

Block

The block to check.

Returns

block is Block

True if the block is valid, false otherwise.

Defined

@nilfoundation/niljs/src/utils/block.ts:8