UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

15 lines (12 loc) 427 B
import { ATypedArrayTuple } from "./a-typed-array-tuple.js"; import { TTypedArray } from "./t-typed-array.js"; /** * @public * Defines utility methods for creating typed array tuples. */ export interface ITypedArrayTupleFactory<TArray extends ATypedArrayTuple<number, TTypedArray>, TCtorArgs extends number[]> { readonly elementCount: number; createOne(...args: TCtorArgs): TArray; createOneEmpty(): TArray; }