Skip to content

Commit

Permalink
fix: improve typings and export additional types (#8631)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Oct 31, 2024
1 parent 089179b commit e4eb975
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions core/blockly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import {
FieldDropdownConfig,
FieldDropdownFromJsonConfig,
FieldDropdownValidator,
ImageProperties,
MenuGenerator,
MenuGeneratorFunction,
MenuOption,
Expand Down Expand Up @@ -94,7 +95,7 @@ import {
FieldVariableFromJsonConfig,
FieldVariableValidator,
} from './field_variable.js';
import {Flyout} from './flyout_base.js';
import {Flyout, FlyoutItem} from './flyout_base.js';
import {FlyoutButton} from './flyout_button.js';
import {FlyoutSeparator} from './flyout_separator.js';
import {IFlyoutInflater} from './interfaces/i_flyout_inflater.js';
Expand Down Expand Up @@ -156,7 +157,7 @@ import {IStyleable} from './interfaces/i_styleable.js';
import {IToolbox} from './interfaces/i_toolbox.js';
import {IToolboxItem} from './interfaces/i_toolbox_item.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 {
IVariableBackedParameterModel,
isVariableBackedParameterModel,
Expand Down Expand Up @@ -488,6 +489,7 @@ export {
FieldDropdownConfig,
FieldDropdownFromJsonConfig,
FieldDropdownValidator,
ImageProperties,
MenuGenerator,
MenuGeneratorFunction,
MenuOption,
Expand All @@ -513,7 +515,7 @@ export {
FieldVariableFromJsonConfig,
FieldVariableValidator,
};
export {Flyout};
export {Flyout, FlyoutItem};
export {FlyoutButton};
export {FlyoutMetricsManager};
export {FlyoutSeparator};
Expand Down Expand Up @@ -568,6 +570,7 @@ export {IToolbox};
export {IToolboxItem};
export {IVariableMap};
export {IVariableModel};
export {IVariableState};
export {IVariableBackedParameterModel, isVariableBackedParameterModel};
export {Marker};
export {MarkerManager};
Expand Down
4 changes: 2 additions & 2 deletions core/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Former goog.module ID: Blockly.clipboard

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 {WorkspaceSvg} from './workspace_svg.js';
import * as registry from './clipboard/registry.js';
Expand Down Expand Up @@ -110,4 +110,4 @@ export const TEST_ONLY = {
copyInternal,
};

export {BlockPaster, registry};
export {BlockPaster, BlockCopyData, registry};
2 changes: 1 addition & 1 deletion core/dropdowndiv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function getOwner(): Field | null {
*
* @returns Div to populate with content.
*/
export function getContentDiv(): Element {
export function getContentDiv(): HTMLDivElement {
return content;
}

Expand Down

0 comments on commit e4eb975

Please sign in to comment.