UNPKG

gnablib

Version:

A lean, zero dependency library to provide a useful base for your project.

32 lines (31 loc) 1.59 kB
/*! Copyright 2023 the gnablib contributors MPL-1.1 */ type TypedArrayMutableProperties = 'copyWithin' | 'fill' | 'reverse' | 'set' | 'sort' | 'buffer' | 'subarray'; export interface ReadonlyUint8ClampedArray extends Omit<Uint8ClampedArray, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyUint8Array extends Omit<Uint8Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyUint16Array extends Omit<Uint16Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyUint32Array extends Omit<Uint32Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyInt8Array extends Omit<Int8Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyInt16Array extends Omit<Int16Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyInt32Array extends Omit<Int32Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyFloat32Array extends Omit<Float32Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export interface ReadonlyFloat64Array extends Omit<Float64Array, TypedArrayMutableProperties> { readonly [n: number]: number; } export type ReadonlyTypedArray = ReadonlyInt8Array | ReadonlyUint8Array | ReadonlyUint8ClampedArray | ReadonlyInt16Array | ReadonlyUint16Array | ReadonlyInt32Array | ReadonlyUint32Array | ReadonlyFloat32Array | ReadonlyFloat64Array; export {};