Add first-class support for typed-array-backed queues via capacity constructor argument — if provided, the queue will be backed by typed arrays (Float64Array for values and Uint32Array for ids by default, configurable):
const q = new FlatQueue(64, /* values */ Uint32Array, /* ids */ Uint16Array);