Skip to content

hm5-types (source format) / isLayer

Function: isLayer() ​

ts
function isLayer(row): row is Layer;

Narrowing helpers for the two discriminated unions this package deals in. Trivial by design — but they live in exactly one place (§12 reuse rule) so the engine, the exporters and the panels never grow their own copies.

Parameters ​

ParameterType
rowTimelineRow

Returns ​

row is Layer

HereSplash — 2D animation for the web