forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
24 lines (21 loc) · 630 Bytes
/
index.ts
File metadata and controls
24 lines (21 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// All actions of the editor are defined here. The sandbox can send messages
// like `source.files.rename` which the editor will see as an action to rename
// a module. This will allow plugins to alter project content in the future
import * as notifications from './notifications';
import * as editor from './editor';
import * as source from './source';
import * as error from './error';
import * as correction from './correction';
import * as glyph from './glyph';
export interface Action {
type: 'action';
action: string;
}
export const actions = {
notifications,
editor,
source,
error,
correction,
glyph,
};