@unhead/schema 1.9.1 → 1.9.2

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.
package/dist/index.d.cts CHANGED
@@ -540,8 +540,9 @@ interface UseScriptOptions<T> extends HeadEntryOptions {
540
540
  * The trigger to load the script:
541
541
  * - `manual` - Load the script manually by calling `$script.load()`.
542
542
  * - `Promise` - Load the script when the promise resolves.
543
+ * - `Function` - Register a callback function to load the script.
543
544
  */
544
- trigger?: 'manual' | Promise<void>;
545
+ trigger?: 'manual' | Promise<void> | ((fn: Function) => any);
545
546
  /**
546
547
  * Context to run events with. This is useful in Vue to attach the current instance context before
547
548
  * calling the event, allowing the event to be reactive.
package/dist/index.d.mts CHANGED
@@ -540,8 +540,9 @@ interface UseScriptOptions<T> extends HeadEntryOptions {
540
540
  * The trigger to load the script:
541
541
  * - `manual` - Load the script manually by calling `$script.load()`.
542
542
  * - `Promise` - Load the script when the promise resolves.
543
+ * - `Function` - Register a callback function to load the script.
543
544
  */
544
- trigger?: 'manual' | Promise<void>;
545
+ trigger?: 'manual' | Promise<void> | ((fn: Function) => any);
545
546
  /**
546
547
  * Context to run events with. This is useful in Vue to attach the current instance context before
547
548
  * calling the event, allowing the event to be reactive.
package/dist/index.d.ts CHANGED
@@ -540,8 +540,9 @@ interface UseScriptOptions<T> extends HeadEntryOptions {
540
540
  * The trigger to load the script:
541
541
  * - `manual` - Load the script manually by calling `$script.load()`.
542
542
  * - `Promise` - Load the script when the promise resolves.
543
+ * - `Function` - Register a callback function to load the script.
543
544
  */
544
- trigger?: 'manual' | Promise<void>;
545
+ trigger?: 'manual' | Promise<void> | ((fn: Function) => any);
545
546
  /**
546
547
  * Context to run events with. This is useful in Vue to attach the current instance context before
547
548
  * calling the event, allowing the event to be reactive.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/schema",
3
3
  "type": "module",
4
- "version": "1.9.1",
4
+ "version": "1.9.2",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",