mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
fix: improve typings and export additional types (#8631)
This commit is contained in:
@@ -60,6 +60,7 @@ import {
|
|||||||
FieldDropdownConfig,
|
FieldDropdownConfig,
|
||||||
FieldDropdownFromJsonConfig,
|
FieldDropdownFromJsonConfig,
|
||||||
FieldDropdownValidator,
|
FieldDropdownValidator,
|
||||||
|
ImageProperties,
|
||||||
MenuGenerator,
|
MenuGenerator,
|
||||||
MenuGeneratorFunction,
|
MenuGeneratorFunction,
|
||||||
MenuOption,
|
MenuOption,
|
||||||
@@ -94,7 +95,7 @@ import {
|
|||||||
FieldVariableFromJsonConfig,
|
FieldVariableFromJsonConfig,
|
||||||
FieldVariableValidator,
|
FieldVariableValidator,
|
||||||
} from './field_variable.js';
|
} from './field_variable.js';
|
||||||
import {Flyout} from './flyout_base.js';
|
import {Flyout, FlyoutItem} from './flyout_base.js';
|
||||||
import {FlyoutButton} from './flyout_button.js';
|
import {FlyoutButton} from './flyout_button.js';
|
||||||
import {FlyoutSeparator} from './flyout_separator.js';
|
import {FlyoutSeparator} from './flyout_separator.js';
|
||||||
import {IFlyoutInflater} from './interfaces/i_flyout_inflater.js';
|
import {IFlyoutInflater} from './interfaces/i_flyout_inflater.js';
|
||||||
@@ -156,7 +157,7 @@ import {IStyleable} from './interfaces/i_styleable.js';
|
|||||||
import {IToolbox} from './interfaces/i_toolbox.js';
|
import {IToolbox} from './interfaces/i_toolbox.js';
|
||||||
import {IToolboxItem} from './interfaces/i_toolbox_item.js';
|
import {IToolboxItem} from './interfaces/i_toolbox_item.js';
|
||||||
import {IVariableMap} from './interfaces/i_variable_map.js';
|
import {IVariableMap} from './interfaces/i_variable_map.js';
|
||||||
import {IVariableModel} from './interfaces/i_variable_model.js';
|
import {IVariableModel, IVariableState} from './interfaces/i_variable_model.js';
|
||||||
import {
|
import {
|
||||||
IVariableBackedParameterModel,
|
IVariableBackedParameterModel,
|
||||||
isVariableBackedParameterModel,
|
isVariableBackedParameterModel,
|
||||||
@@ -488,6 +489,7 @@ export {
|
|||||||
FieldDropdownConfig,
|
FieldDropdownConfig,
|
||||||
FieldDropdownFromJsonConfig,
|
FieldDropdownFromJsonConfig,
|
||||||
FieldDropdownValidator,
|
FieldDropdownValidator,
|
||||||
|
ImageProperties,
|
||||||
MenuGenerator,
|
MenuGenerator,
|
||||||
MenuGeneratorFunction,
|
MenuGeneratorFunction,
|
||||||
MenuOption,
|
MenuOption,
|
||||||
@@ -513,7 +515,7 @@ export {
|
|||||||
FieldVariableFromJsonConfig,
|
FieldVariableFromJsonConfig,
|
||||||
FieldVariableValidator,
|
FieldVariableValidator,
|
||||||
};
|
};
|
||||||
export {Flyout};
|
export {Flyout, FlyoutItem};
|
||||||
export {FlyoutButton};
|
export {FlyoutButton};
|
||||||
export {FlyoutMetricsManager};
|
export {FlyoutMetricsManager};
|
||||||
export {FlyoutSeparator};
|
export {FlyoutSeparator};
|
||||||
@@ -568,6 +570,7 @@ export {IToolbox};
|
|||||||
export {IToolboxItem};
|
export {IToolboxItem};
|
||||||
export {IVariableMap};
|
export {IVariableMap};
|
||||||
export {IVariableModel};
|
export {IVariableModel};
|
||||||
|
export {IVariableState};
|
||||||
export {IVariableBackedParameterModel, isVariableBackedParameterModel};
|
export {IVariableBackedParameterModel, isVariableBackedParameterModel};
|
||||||
export {Marker};
|
export {Marker};
|
||||||
export {MarkerManager};
|
export {MarkerManager};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
// Former goog.module ID: Blockly.clipboard
|
// Former goog.module ID: Blockly.clipboard
|
||||||
|
|
||||||
import type {ICopyData, ICopyable} from './interfaces/i_copyable.js';
|
import type {ICopyData, ICopyable} from './interfaces/i_copyable.js';
|
||||||
import {BlockPaster} from './clipboard/block_paster.js';
|
import {BlockPaster, BlockCopyData} from './clipboard/block_paster.js';
|
||||||
import * as globalRegistry from './registry.js';
|
import * as globalRegistry from './registry.js';
|
||||||
import {WorkspaceSvg} from './workspace_svg.js';
|
import {WorkspaceSvg} from './workspace_svg.js';
|
||||||
import * as registry from './clipboard/registry.js';
|
import * as registry from './clipboard/registry.js';
|
||||||
@@ -110,4 +110,4 @@ export const TEST_ONLY = {
|
|||||||
copyInternal,
|
copyInternal,
|
||||||
};
|
};
|
||||||
|
|
||||||
export {BlockPaster, registry};
|
export {BlockPaster, BlockCopyData, registry};
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export function getOwner(): Field | null {
|
|||||||
*
|
*
|
||||||
* @returns Div to populate with content.
|
* @returns Div to populate with content.
|
||||||
*/
|
*/
|
||||||
export function getContentDiv(): Element {
|
export function getContentDiv(): HTMLDivElement {
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user