Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

ExtractDepthLayersFromPrimitives

ExtractDepthLayersFromPrimitives<P> = P extends object ? string[] extends D ? DefaultDepthLayer : D[number] : DefaultDepthLayer

Defined in: packages/sigma/src/primitives/types.ts:244

Extracts the depth-layer union from a primitives declaration: the literal depthLayers tuple when one is declared, otherwise the default layers. A widened string[] (no literal info) also falls back to the defaults.

Type Parameters

P

P extends PrimitivesDeclaration