0.0.5 • Published 2 years ago
blockly-plugin-type-blockjson v0.0.5
What's this?
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:
- Block definition
Installation
- Make sure you've installed typescript.
npm install blockly-plugin-type-blockjson
.
Usage
import {BlockJson} from 'blockly-plugin-type-blockJSON';
const sampleBlock:BlockJson = {
type:"SampleBlock",...
}