index.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright 2019-2022 Tauri Programme within The Commons Conservancy
  2. // SPDX-License-Identifier: Apache-2.0
  3. // SPDX-License-Identifier: MIT
  4. /**
  5. * The Tauri API allows you to interface with the backend layer.
  6. *
  7. * This module exposes all other modules as an object where the key is the module name, and the value is the module exports.
  8. * @example
  9. * ```typescript
  10. * import { app, dialog, event, fs, globalShortcut } from '@tauri-apps/api'
  11. * ```
  12. * @module
  13. */
  14. import * as app from './app'
  15. import * as cli from './cli'
  16. import * as clipboard from './clipboard'
  17. import * as dialog from './dialog'
  18. import * as event from './event'
  19. import * as fs from './fs'
  20. import * as globalShortcut from './globalShortcut'
  21. import * as http from './http'
  22. import * as notification from './notification'
  23. import * as path from './path'
  24. import * as process from './process'
  25. import * as shell from './shell'
  26. import * as tauri from './tauri'
  27. import * as updater from './updater'
  28. import * as window from './window'
  29. import * as os from './os'
  30. /** @ignore */
  31. const invoke = tauri.invoke
  32. export {
  33. invoke,
  34. app,
  35. cli,
  36. clipboard,
  37. dialog,
  38. event,
  39. fs,
  40. globalShortcut,
  41. http,
  42. notification,
  43. path,
  44. process,
  45. shell,
  46. tauri,
  47. updater,
  48. window,
  49. os
  50. }