Skip to content
EN

Interface: ScriptHandlerOptions ​

Properties ​

PropertyTypeDescription
manifestUrlstringManifest URL produced by the script build (scripts/manifest.json).
bundleUrlstringBundled ESM URL produced by the script build.
fetch?(input, init?) => Promise<Response>-
loadModule?ScriptModuleLoaderOverrides the module loader; defaults to Blob URL + dynamic import.
createObjectURL?(source) => string | nullOverrides Blob URL creation (tests / custom hosts).
revokeObjectURL?(url) => voidOverrides Blob URL revocation (tests / custom hosts).

Methods ​

log()? ​

ts
log?(...args): void;

Parameters ​

ParameterType
...argsunknown[]

Returns ​

void


warn()? ​

ts
warn?(...args): void;

Parameters ​

ParameterType
...argsunknown[]

Returns ​

void


error()? ​

ts
error?(...args): void;

Parameters ​

ParameterType
...argsunknown[]

Returns ​

void

Suity 开发者文档 · API 由 TypeDoc 从声明文件生成