1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 00:17:04 +00:00

typescript: updated to 5.9.2

This commit is contained in:
Steven Hugg
2025-09-23 17:22:12 -05:00
parent 0dd9183e40
commit 2af33a837a
8 changed files with 24 additions and 24 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
{
"name": "8bitworkshop",
"version": "3.12.0",
"version": "3.12.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "8bitworkshop",
"version": "3.12.0",
"version": "3.12.1",
"license": "GPL-3.0",
"dependencies": {
"@types/dompurify": "^3.0.5",
@@ -44,7 +44,7 @@
"lzg": "^1.0.x",
"mocha": "^10.7.3",
"mocha-simple-html-reporter": "^2.0.0",
"typescript": "^5.2.2",
"typescript": "^5.9.2",
"typescript-formatter": "^7.2.2"
},
"optionalDependencies": {
@@ -7297,9 +7297,9 @@
}
},
"node_modules/typescript": {
"version": "5.6.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
"version": "5.9.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
"dev": true,
"license": "Apache-2.0",
"bin": {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "8bitworkshop",
"version": "3.12.0",
"version": "3.12.1",
"author": "Steven Hugg",
"category": "Development",
"description": "8bitworkshop.com retro programming IDE",
@@ -45,7 +45,7 @@
"lzg": "^1.0.x",
"mocha": "^10.7.3",
"mocha-simple-html-reporter": "^2.0.0",
"typescript": "^5.2.2",
"typescript": "^5.9.2",
"typescript-formatter": "^7.2.2"
},
"optionalDependencies": {
+2 -2
View File
@@ -101,12 +101,12 @@ export class OutputSoundFile {
this.tapData[0x13] = (datalen >> 24) & 0xff;
}
getTAPData(): Uint8Array {
getTAPData() {
this.updateTAPHeader();
return new Uint8Array(this.tapData);
}
getSoundData(): Uint8Array {
getSoundData() {
let header = this.getWAVHeader();
let data = new Uint8Array(header.length + this.soundData.length);
data.set(header, 0);
+6 -6
View File
@@ -178,10 +178,10 @@ export class HDLModuleWASM implements HDLModuleRunner {
constpool: HDLModuleDef;
globals: Struct;
locals: Struct;
databuf: Buffer;
data8: Uint8Array;
data16: Uint16Array;
data32: Uint32Array;
databuf: ArrayBuffer;
data8: Uint8Array<ArrayBuffer>;
data16: Uint16Array<ArrayBuffer>;
data32: Uint32Array<ArrayBuffer>;
getFileData = null;
maxMemoryMB: number;
optimize: boolean = false;
@@ -449,13 +449,13 @@ export class HDLModuleWASM implements HDLModuleRunner {
private async genModule() {
var wasmData = this.bmod.emitBinary();
var compiled = await WebAssembly.compile(wasmData);
var compiled = await WebAssembly.compile(wasmData as Uint8Array<ArrayBuffer>);
this.instance = await WebAssembly.instantiate(compiled, this.getImportObject());
}
private genModuleSync() {
var wasmData = this.bmod.emitBinary();
var compiled = new WebAssembly.Module(wasmData);
var compiled = new WebAssembly.Module(wasmData as Uint8Array<ArrayBuffer>);
this.instance = new WebAssembly.Instance(compiled, this.getImportObject());
}
+2 -2
View File
@@ -350,11 +350,11 @@ export class WASIRunner {
this.#instance = new WebAssembly.Instance(wasmModule, this.getImportObject());
}
loadSync(wasmSource: Uint8Array) {
let wasmModule = new WebAssembly.Module(wasmSource);
let wasmModule = new WebAssembly.Module(wasmSource as Uint8Array<ArrayBuffer>);
this.initSync(wasmModule);
}
async loadAsync(wasmSource: Uint8Array) {
let wasmModule = await WebAssembly.compile(wasmSource);
let wasmModule = await WebAssembly.compile(wasmSource as Uint8Array<ArrayBuffer>);
this.#instance = await WebAssembly.instantiate(wasmModule, this.getImportObject());
}
setArgs(args: string[]) {
+3 -3
View File
@@ -5,14 +5,14 @@ import { KeyFlags } from "../common/emu"; // TODO
import { hex, lzgmini, stringToByteArray, RGBA, printFlags, arrayCompare } from "../common/util";
interface AppleIIStateBase {
ram : Uint8Array;
ram : Uint8Array<ArrayBuffer>;
soundstate : number;
auxRAMselected,writeinhibit : boolean;
auxRAMbank : number;
}
interface AppleIIControlsState {
inputs : Uint8Array; // unused?
inputs : Uint8Array<ArrayBuffer>; // unused?
kbdlatch : number;
}
@@ -135,7 +135,7 @@ export class AppleII extends BasicScanlineMachine implements AcceptsBIOS {
auxRAMbank: this.auxRAMbank,
writeinhibit: this.writeinhibit,
slots: this.slots.map((slot) => { return slot && slot['saveState'] && slot['saveState']() }),
inputs: null
inputs: this.ram.slice(0,0) // unused
};
}
loadState(s:AppleIIState) {
+1 -1
View File
@@ -320,7 +320,7 @@ const _BallyAstrocade = function(arcade:boolean) {
}
}
this.init = (machine:BallyAstrocade, c:Z80, r:Uint8Array, inp:Uint8Array, psgg) => {
this.init = (machine:BallyAstrocade, c:Z80, r:Uint8Array, inp:Uint8Array<ArrayBuffer>, psgg) => {
cpu = c;
ram = r;
inputs = inp;
+2 -2
View File
@@ -11,12 +11,12 @@ import { hex, rgb2bgr } from "../common/util";
// https://sites.google.com/site/atari7800wiki/
interface Atari7800StateBase {
ram : Uint8Array;
ram : Uint8Array<ArrayBuffer>;
regs6532 : Uint8Array;
}
interface Atari7800ControlsState {
inputs : Uint8Array;
inputs : Uint8Array<ArrayBuffer>;
}
interface Atari7800State extends Atari7800StateBase, Atari7800ControlsState {