Blockly official guide says:
The JSON format is the preferred method of defining blocks.
This plugin provides type declaration for below kind of JSON data defined in .ts file:
npm install blockly-plugin-type-blockjson
.import {BlockJson} from 'blockly-plugin-type-blockJSON';
const sampleBlock:BlockJson = {
type:"SampleBlock",...
}