Skip to content

API Function defineUIService

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

Function: defineUIService()

function defineUIService(component, options): UIServiceDef;

Defined in: src/plugins/ui/runtime/uiServices.ts:52

Declare the service for views of component (a project path, ui/Hud.svelte or asset:ui/Hud.svelte; matched as project paths are, without regard to case). One per file: declaring a file again throws, except while scripts reload.

Parameters

component

string

options

UIServiceOptions

Returns

UIServiceDef

Clone this wiki locally