Update typings script and fix two typing issues: (#4542)

This commit is contained in:
Sam El-Husseini
2020-12-16 22:29:20 -05:00
committed by GitHub
parent 1aedeba002
commit 7ebb53968c
5 changed files with 3532 additions and 3046 deletions

View File

@@ -1070,3 +1070,15 @@ Blockly.Flyout.prototype.wheel_;
* @protected
*/
Blockly.Flyout.prototype.reflowInternal_;
/**
* Calculates the x coordinate for the flyout position.
* @return {number} X coordinate.
*/
Blockly.Flyout.prototype.getX;
/**
* Calculates the y coordinate for the flyout position.
* @return {number} Y coordinate.
*/
Blockly.Flyout.prototype.getY;

View File

@@ -26,7 +26,6 @@ function typings() {
const tmpDir = './typings/tmp';
const blocklySrcs = [
"core/",
"core/components",
"core/events",
"core/keyboard_nav",
"core/renderers/common",
@@ -67,12 +66,12 @@ function typings() {
'typings/templates/blockly-interfaces.template',
`${tmpDir}/core/**`,
`${tmpDir}/core/interfaces/**`,
`${tmpDir}/core/components/**`,
`${tmpDir}/core/components/tree/**`,
`${tmpDir}/core/events/**`,
`${tmpDir}/core/keyboard_nav/**`,
`${tmpDir}/core/renderers/common/**`,
`${tmpDir}/core/renderers/measurables/**`,
`${tmpDir}/core/utils/**`,
`${tmpDir}/core/toolbox/**`,
`${tmpDir}/core/theme/**`,
`${tmpDir}/msg/**`
];

6544
typings/blockly.d.ts vendored

File diff suppressed because it is too large Load Diff

16
typings/msg/zgh.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Type definitions for the Blockly zgh locale.
* @author samelh@google.com (Sam El-Husseini)
*/
/// <reference path="msg.d.ts" />
import BlocklyMsg = Blockly.Msg;
export = BlocklyMsg;

View File

@@ -39,7 +39,6 @@ declare module Blockly {
pinch?: boolean;
};
renderer?: string;
keyMap?: {[type: string]: Blockly.Action;};
parentWorkspace?: Blockly.WorkspaceSvg;
}