Skip to content

const __DEQUE_LAYOUTS: Readonly<Record<DequeKind, DequeFactory>>

Defined in: packages/deque/src/layouts.ts:14

Every deque layout, keyed by the kind a deque built from it reports.

Iterate this table instead of naming factories one by one: a property sweep, a benchmark, or a caller comparing layouts covers every entry, and a layout added to DEQUE_KINDS fails to typecheck until it is enrolled here too. The table’s signature is the one both layouts share, over number elements; call arrayDeque directly for any other element type.