返回 slidev
index.ts
根目录 / packages / client / index.ts
1 /**
2 * This file is the public APIs that you might use in your app.
3 *
4 * The other files despite they are accessable, are not meant to be used directly, breaking changes might happen.
5 */
6
7 export { useDarkMode } from './composables/useDarkMode'
8 export { useDrawings } from './composables/useDrawings'
9 export { useNav } from './composables/useNav'
10
11 export { useSlideContext } from './context'
12
13 export * from './env'
14 export * from './layoutHelper'
15
16 export {
17 onSlideEnter,
18 onSlideLeave,
19 useIsSlideActive,
20 } from './logic/slides'
21
22 export type { DrawingsState } from './state/drawings'
23 export { drawingState, onDrawingUpdate } from './state/drawings'
24 export type { SharedState } from './state/shared'
25 export { onSharedUpdate, sharedState } from './state/shared'
26 export { lockShortcuts } from './state/storage'
27
28 export {
29 addSyncMethod,
30 createSyncState,
31 disableBuiltinSync,
32 } from './state/syncState'
33
33 lines TYPESCRIPT