Improve TS types to support isolatedModules and isolatedDeclarations

This commit is contained in:
Björn Harrtell
2026-04-08 05:42:18 +02:00
parent e223d69b36
commit 496f10525b
249 changed files with 12736 additions and 14776 deletions

View File

@@ -1,5 +1,5 @@
export const int32 = new Int32Array(2);
export const float32 = new Float32Array(int32.buffer);
export const float64 = new Float64Array(int32.buffer);
export const isLittleEndian =
export const int32: Int32Array = new Int32Array(2);
export const float32: Float32Array = new Float32Array(int32.buffer);
export const float64: Float64Array = new Float64Array(int32.buffer);
export const isLittleEndian: boolean =
new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;