index.cjs 1.5 KB

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