Skip to content

Commit 0118b43

Browse files
authored
feat: provide types of Keybinding and QuickAccess (#567)
* feat: provide types for Keybinding and QuickAccess * feat: export keybinding types
1 parent e0ba0fc commit 0118b43

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

src/model/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export * from './settings';
55
export * from './notification';
66
export * from './problems';
77
export * from './colorTheme';
8+
export * from './keybinding';

src/molecule.api.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { container } from 'tsyringe';
44
export * as event from 'mo/common/event';
55
export * as react from 'mo/react';
66
export * as component from 'mo/components';
7+
export * as monaco from 'mo/monaco/api';
8+
79
export * from 'mo/i18n';
810
export * from 'mo/workbench';
911
export * from 'mo/services';

src/monaco/api.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { KeyChord } from 'monaco-editor/esm/vs/base/common/keyCodes';
2+
export type { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput';
3+
export { KeybindingWeight, Action2 } from './common';

src/monaco/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ import 'monaco-editor/esm/vs/editor/standalone/browser/referenceSearch/standalon
2222
import 'monaco-editor/esm/vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast';
2323

2424
export * from 'monaco-editor/esm/vs/editor/editor.api.js';
25+
26+
export { KeybindingWeight, Action2 } from './common';

website/sidebars.js

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module.exports = {
6060
'api/namespaces/molecule.model',
6161
'api/namespaces/molecule.react',
6262
'api/namespaces/molecule.event',
63+
'api/namespaces/molecule.monaco',
6364
],
6465
},
6566
{

0 commit comments

Comments
 (0)