Options
All
  • Public
  • Public/Protected
  • All
Menu

blockly-plugin-type-blockjson

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

  1. Make sure you've installed typescript.
  2. npm install blockly-plugin-type-blockjson.

Usage

import {BlockJson} from 'blockly-plugin-type-blockJSON';

const sampleBlock:BlockJson = {
type:"SampleBlock",...
}

Reference

https://yukiya383.github.io/blockly-plugin-type-blockjson/