Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import FormatBase from './FormatBase.js';
|
||||
/** abstract class that support array-like methods and 'for...of' operation */
|
||||
declare abstract class ArrayFormatBase<T> extends FormatBase {
|
||||
protected constructor(view: DataView);
|
||||
abstract readonly length: number;
|
||||
abstract get(index: number): Readonly<T>;
|
||||
abstract set(index: number, data: T): void;
|
||||
forEach(callback: (value: T, index: number, base: this) => void): void;
|
||||
_iterator(): Iterator<Readonly<T>>;
|
||||
}
|
||||
interface ArrayFormatBase<T> {
|
||||
[Symbol.iterator]: () => Iterator<Readonly<T>>;
|
||||
}
|
||||
export default ArrayFormatBase;
|
||||
Reference in New Issue
Block a user