@unhead/schema 1.10.0-beta.6 → 1.10.1
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 +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -531,8 +531,13 @@ interface ScriptInstance<T extends BaseScriptApi> {
|
|
|
531
531
|
entry?: ActiveHeadEntry<any>;
|
|
532
532
|
load: () => Promise<T>;
|
|
533
533
|
remove: () => boolean;
|
|
534
|
+
updateTrigger: (trigger: UseScriptOptions['trigger']) => void;
|
|
534
535
|
onLoaded: (fn: (instance: T) => void | Promise<void>) => void;
|
|
535
536
|
onError: (fn: (err?: Error) => void | Promise<void>) => void;
|
|
537
|
+
/**
|
|
538
|
+
* @internal
|
|
539
|
+
*/
|
|
540
|
+
_triggerAbortController?: AbortController;
|
|
536
541
|
/**
|
|
537
542
|
* @internal
|
|
538
543
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -531,8 +531,13 @@ interface ScriptInstance<T extends BaseScriptApi> {
|
|
|
531
531
|
entry?: ActiveHeadEntry<any>;
|
|
532
532
|
load: () => Promise<T>;
|
|
533
533
|
remove: () => boolean;
|
|
534
|
+
updateTrigger: (trigger: UseScriptOptions['trigger']) => void;
|
|
534
535
|
onLoaded: (fn: (instance: T) => void | Promise<void>) => void;
|
|
535
536
|
onError: (fn: (err?: Error) => void | Promise<void>) => void;
|
|
537
|
+
/**
|
|
538
|
+
* @internal
|
|
539
|
+
*/
|
|
540
|
+
_triggerAbortController?: AbortController;
|
|
536
541
|
/**
|
|
537
542
|
* @internal
|
|
538
543
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -531,8 +531,13 @@ interface ScriptInstance<T extends BaseScriptApi> {
|
|
|
531
531
|
entry?: ActiveHeadEntry<any>;
|
|
532
532
|
load: () => Promise<T>;
|
|
533
533
|
remove: () => boolean;
|
|
534
|
+
updateTrigger: (trigger: UseScriptOptions['trigger']) => void;
|
|
534
535
|
onLoaded: (fn: (instance: T) => void | Promise<void>) => void;
|
|
535
536
|
onError: (fn: (err?: Error) => void | Promise<void>) => void;
|
|
537
|
+
/**
|
|
538
|
+
* @internal
|
|
539
|
+
*/
|
|
540
|
+
_triggerAbortController?: AbortController;
|
|
536
541
|
/**
|
|
537
542
|
* @internal
|
|
538
543
|
*/
|