LoginSignup
1
3

More than 3 years have passed since last update.

TypeScriptを導入しているプロジェクトでBlockly.JavaScriptを使う

Posted at

普通にアンビエント宣言を使えば行けます。以下を記述したファイルをプロジェクト内に置くだけです。

import { Generator } from 'blockly';

declare module 'blockly' {
  export const JavaScript: Generator;
}

Blockly.JavaScriptBlockly.Generatorクラスのインスタンスのようです。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3