跳转到内容

parseActionArg

此内容尚不支持你的语言。

parseActionArg(arg, params, separator?): Record<string, AiParamValue>

Defined in: ai/fsm/registry.ts:177

Split a canonical string into declared parameters. The last parameter absorbs the remainder, so "tabs:a:b" against [controller, page] yields {controller: 'tabs', page: 'a:b'} — the same rule ui.setPage hand-rolled. Numbers and booleans are coerced to their declared type.

string | undefined

readonly AiParamDef[]

string = ':'

Record<string, AiParamValue>