Bläddra i källkod

fix(docs): grammar on private API usage warning

Lucas Nogueira 3 år sedan
förälder
incheckning
0c63595916
3 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      core/tauri-utils/src/config.rs
  2. 1 1
      tooling/api/src/window.ts
  3. 1 1
      tooling/cli/schema.json

+ 1 - 1
core/tauri-utils/src/config.rs

@@ -564,7 +564,7 @@ pub struct WindowConfig {
   /// Whether the window is transparent or not.
   ///
   /// Note that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri.conf.json > tauri > macOSPrivateApi`.
-  /// WARNING: Using private APIs on `macOS` prevents your application from being accepted for the `App Store`.
+  /// WARNING: Using private APIs on `macOS` prevents your application from being accepted to the `App Store`.
   #[serde(default)]
   pub transparent: bool,
   /// Whether the window is maximized or not.

+ 1 - 1
tooling/api/src/window.ts

@@ -1407,7 +1407,7 @@ interface WindowOptions {
   /**
    * Whether the window is transparent or not.
    * Note that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri.conf.json > tauri > macOSPrivateApi`.
-   * WARNING: Using private APIs on `macOS` prevents your application from being accepted for the `App Store`.
+   * WARNING: Using private APIs on `macOS` prevents your application from being accepted to the `App Store`.
    */
   transparent?: boolean
   /** Whether the window should be maximized upon creation or not. */

+ 1 - 1
tooling/cli/schema.json

@@ -571,7 +571,7 @@
           "type": "boolean"
         },
         "transparent": {
-          "description": "Whether the window is transparent or not.\n\nNote that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri.conf.json > tauri > macOSPrivateApi`. WARNING: Using private APIs on `macOS` prevents your application from being accepted for the `App Store`.",
+          "description": "Whether the window is transparent or not.\n\nNote that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri.conf.json > tauri > macOSPrivateApi`. WARNING: Using private APIs on `macOS` prevents your application from being accepted to the `App Store`.",
           "default": false,
           "type": "boolean"
         },