@unhead/schema 1.11.11 → 1.11.13
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 +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -561,7 +561,7 @@ interface ScriptInstance<T extends BaseScriptApi> {
|
|
|
561
561
|
}
|
|
562
562
|
type UseFunctionType<T, U> = T extends {
|
|
563
563
|
use: infer V;
|
|
564
|
-
} ? V extends () =>
|
|
564
|
+
} ? V extends (...args: any) => any ? ReturnType<V> : U : U;
|
|
565
565
|
interface UseScriptOptions<T extends BaseScriptApi = {}, U = {}> extends HeadEntryOptions {
|
|
566
566
|
/**
|
|
567
567
|
* Resolve the script instance from the window.
|
package/dist/index.d.mts
CHANGED
|
@@ -561,7 +561,7 @@ interface ScriptInstance<T extends BaseScriptApi> {
|
|
|
561
561
|
}
|
|
562
562
|
type UseFunctionType<T, U> = T extends {
|
|
563
563
|
use: infer V;
|
|
564
|
-
} ? V extends () =>
|
|
564
|
+
} ? V extends (...args: any) => any ? ReturnType<V> : U : U;
|
|
565
565
|
interface UseScriptOptions<T extends BaseScriptApi = {}, U = {}> extends HeadEntryOptions {
|
|
566
566
|
/**
|
|
567
567
|
* Resolve the script instance from the window.
|
package/dist/index.d.ts
CHANGED
|
@@ -561,7 +561,7 @@ interface ScriptInstance<T extends BaseScriptApi> {
|
|
|
561
561
|
}
|
|
562
562
|
type UseFunctionType<T, U> = T extends {
|
|
563
563
|
use: infer V;
|
|
564
|
-
} ? V extends () =>
|
|
564
|
+
} ? V extends (...args: any) => any ? ReturnType<V> : U : U;
|
|
565
565
|
interface UseScriptOptions<T extends BaseScriptApi = {}, U = {}> extends HeadEntryOptions {
|
|
566
566
|
/**
|
|
567
567
|
* Resolve the script instance from the window.
|