@unhead/schema 1.9.1 → 1.9.3
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 +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
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: any) => 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: any) => 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: any) => 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.
|