fix: Update typescript definition files for core, blocks, and generators (#6174)

* fix: update definitions for core and blocks

* fix: update javascript definition

* fix: update JS definition to work with both import types

* fix: update typings for blocks
This commit is contained in:
Maribeth Bottorff
2022-06-01 15:20:23 -07:00
committed by GitHub
parent 706c2bfd41
commit 87aa4c0f62
3 changed files with 16 additions and 9 deletions

13
typings/blocks.d.ts vendored
View File

@@ -11,5 +11,14 @@
/// <reference path="core.d.ts" />
import * as Blockly from './core';
export = Blockly.Blocks;
export const colour: any;
export const lists: any;
export const logic: any;
export const loops: any;
export const math: any;
export const procedures: any;
export const texts: any;
export const variables: any;
export const variablesDynamic: any;
export const blocks: any;

3
typings/core.d.ts vendored
View File

@@ -11,5 +11,4 @@
/// <reference path="blockly.d.ts" />
import * as Blockly from 'blockly';
export = Blockly;
export * from 'core/blockly';

9
typings/index.d.ts vendored
View File

@@ -14,9 +14,8 @@
/// <reference path="javascript.d.ts" />
/// <reference path="msg/msg.d.ts" />
import * as Blockly from './core';
import './blocks';
import './javascript';
import { Generator } from 'core/blockly';
export * from './core';
export * as libraryBlocks from './blocks';
export const JavaScript: Generator;
import './msg/msg';
export = Blockly;