Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / detect

Function: detect() โ€‹

detect(ctx, detector, hit): void

Defined in: core/frontend/detect.ts:40

Emits detector and runs hit where it holds. With no clauses, hit is emitted bare.

Parameters โ€‹

ctx โ€‹

FunctionContext

detector โ€‹

Detector

hit โ€‹

OnHit

Returns โ€‹

void

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.