Skip to content

getMinimumVersionForBlock()

PromptScript API


getMinimumVersionForBlock(blockName): string | undefined

Defined in: core/src/syntax-versions.ts:248

Get the minimum syntax version that supports a given block type.

Parameters

blockName

string

Returns

string | undefined

Version string, or undefined if the block is not in any known version