Initial commit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
dinlo
2026-05-31 18:44:04 +08:00
commit 436a9631fc
8616 changed files with 1389957 additions and 0 deletions
+14
View File
@@ -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;