mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
* fix: package .ts sources * chore: add generating type defs * chore: copy generated type defs into dist dir * chore: fix adding generated def files * chore: remove unnecessary imports * chore: make handcrafted files reference generated * chore: replace AnyDuringMigration with any * chore: use replace instead of regex-replace * chore: use value in config instead of magic strings * chore: remove blockly.d.ts * chore: update jsdocs * chore: remove old references to typings
blockly.d.ts
This blockly.d.ts file describes the TypeScript type definitions for Blockly.
If you consume Blockly through npm, this file is already included in the npm package.
Otherwise, you can include a copy of this file with your sources and reference it through a Triple-Slash directive.
Generating a new version
To generate a new version of the Typings file, from the Blockly root directory run npm run typings.
You will need to run npm install for this to work.
Note: In order to check for errors in the typings file, run tsc in the typings/ directory.