-
-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathindex.ts
47 lines (44 loc) · 1.56 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { initDevTools, onDevToolsClientConnected } from './core'
import { toggleComponentInspectorEnabled } from './core/component-inspector'
import { toggleHighPerfMode } from './core/high-perf-mode'
import { setOpenInEditorBaseUrl } from './core/open-in-editor'
import { setupDevToolsPlugin } from './core/plugin'
import { addCustomCommand, addCustomTab, devtoolsContext, removeCustomCommand } from './ctx'
import { hook } from './hook'
export * from './core'
export type * from './core/component-highlighter'
export type * from './core/component-inspector'
export { INFINITY, NAN, NEGATIVE_INFINITY, UNDEFINED } from './core/component/state/constants'
export { formatInspectorStateValue, getInspectorStateValueType, getRaw, toEdit, toSubmit } from './core/component/state/format'
export { isPlainObject } from './core/component/state/is'
export { escape } from './core/component/state/util'
export type * from './core/component/types'
export { updateDevToolsClientDetected } from './core/devtools-client/detected'
export type * from './core/open-in-editor'
export * from './core/plugin'
export * from './ctx'
export * from './messaging'
export { parse, stringify } from './shared'
export type * from './types'
export const devtools = {
hook,
init: () => {
initDevTools()
},
get ctx() {
return devtoolsContext
},
get api() {
return devtoolsContext.api
},
}
export {
addCustomCommand,
addCustomTab,
onDevToolsClientConnected,
removeCustomCommand,
setOpenInEditorBaseUrl,
setupDevToolsPlugin,
toggleComponentInspectorEnabled,
toggleHighPerfMode,
}