Skip to content

Commit cbd4b3b

Browse files
Temporary getClass() workaround
1 parent 29e082a commit cbd4b3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import * as Blockly from 'blockly/core';
88
import {NavigationController} from './navigation_controller';
99
import {enableBlocksOnDrag} from './disabled_blocks';
1010

11+
Blockly.Field.prototype.getClass = function () {
12+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
13+
return this.constructor as any;
14+
};
15+
1116
/** Options object for KeyboardNavigation instances. */
1217
export interface NavigationOptions {
1318
cursor: Partial<Blockly.CursorOptions>;

0 commit comments

Comments
 (0)