mirror of
https://github.com/google/blockly.git
synced 2026-01-30 12:10:12 +01:00
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:
committed by
GitHub
parent
706c2bfd41
commit
87aa4c0f62
13
typings/blocks.d.ts
vendored
13
typings/blocks.d.ts
vendored
@@ -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
3
typings/core.d.ts
vendored
@@ -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
9
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user