@popclip/types 1.4663.0 → 1.4666.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/popclip.d.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popclip/types",
3
- "version": "1.4663.0",
3
+ "version": "1.4666.0",
4
4
  "devDependencies": {
5
5
  "typedoc": "0.25.13",
6
6
  "typescript": "5.4.5"
package/popclip.d.ts CHANGED
@@ -974,11 +974,12 @@ interface PopClip {
974
974
  * popclip.openUrl(`mailto:support@pilotmoon.com?subject=${encodeURIComponent("What's up?")}`); // open mailto link in the default mail application
975
975
  * ```
976
976
  *
977
- * @param url A well-formed URL
977
+ * @param url URL string, or an object with a `href` property. (If the latter is passed,
978
+ * the `href` property is used as the URL but with `+` characters replaced with `%20`.)
978
979
  * @param options Options.
979
980
  */
980
981
  openUrl: (
981
- url: string,
982
+ url: string | { href: string },
982
983
  options?: {
983
984
  /**
984
985
  * Bundle identifier of the app to open the URL with. For example `"com.google.Chrome"`.