Remove deprecated scripts for adding head-matter to wt_config.xml, including Python and Bash implementations, to streamline configuration management.
This commit is contained in:
34
client/node_modules/@unhead/vue/dist/scripts.d.mts
generated
vendored
Normal file
34
client/node_modules/@unhead/vue/dist/scripts.d.mts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { UseScriptOptions as UseScriptOptions$1, ScriptInstance, UseScriptStatus, UseFunctionType } from 'unhead/scripts';
|
||||
export { AsVoidFunctions, EventHandlerOptions, RecordingEntry, ScriptInstance, UseFunctionType, UseScriptResolvedInput, UseScriptStatus, WarmupStrategy, createSpyProxy, resolveScriptKey } from 'unhead/scripts';
|
||||
import { ScriptWithoutEvents, DataKeys, SchemaAugmentations, HeadEntryOptions } from 'unhead/types';
|
||||
import { Ref } from 'vue';
|
||||
import { o as ResolvableProperties, V as VueHeadClient } from './shared/vue.DoxLTFJk.mjs';
|
||||
|
||||
interface VueScriptInstance<T extends Record<symbol | string, any>> extends Omit<ScriptInstance<T>, 'status'> {
|
||||
status: Ref<UseScriptStatus>;
|
||||
}
|
||||
type UseScriptInput = string | (ResolvableProperties<Omit<ScriptWithoutEvents & DataKeys & SchemaAugmentations['script'], 'src'>> & {
|
||||
src: string;
|
||||
});
|
||||
interface UseScriptOptions<T extends Record<symbol | string, any> = Record<string, any>> extends Omit<HeadEntryOptions, 'head'>, Pick<UseScriptOptions$1<T>, 'use' | 'eventContext' | 'beforeInit'> {
|
||||
/**
|
||||
* The trigger to load the script:
|
||||
* - `undefined` | `client` - (Default) Load the script on the client when this js is loaded.
|
||||
* - `manual` - Load the script manually by calling `$script.load()`, exists only on the client.
|
||||
* - `Promise` - Load the script when the promise resolves, exists only on the client.
|
||||
* - `Function` - Register a callback function to load the script, exists only on the client.
|
||||
* - `server` - Have the script injected on the server.
|
||||
* - `ref` - Load the script when the ref is true.
|
||||
*/
|
||||
trigger?: UseScriptOptions$1['trigger'] | Ref<boolean>;
|
||||
/**
|
||||
* Unhead instance.
|
||||
*/
|
||||
head?: VueHeadClient<any>;
|
||||
}
|
||||
type UseScriptContext<T extends Record<symbol | string, any>> = VueScriptInstance<T>;
|
||||
type UseScriptReturn<T extends Record<symbol | string, any>> = UseScriptContext<UseFunctionType<UseScriptOptions<T>, T>>;
|
||||
declare function useScript<T extends Record<symbol | string, any> = Record<symbol | string, any>>(_input: UseScriptInput, _options?: UseScriptOptions<T>): UseScriptReturn<T>;
|
||||
|
||||
export { useScript };
|
||||
export type { UseScriptContext, UseScriptInput, UseScriptOptions, UseScriptReturn, VueScriptInstance };
|
||||
Reference in New Issue
Block a user