Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "latch",
"description": "A testing language for constraint environments",
"version": "0.4.3",
"version": "0.5.0",
"type": "commonjs",
"exports": {
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/messaging/Parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function invokeParser(text: string): WASM.Value<Type> | Exception {
if (exception(text)) {
return {text: text};
}
const stack: {value: any, type: any}[] = stateParser(text).stack!;
const stack: WASM.Value<Type>[] = stateParser(text).stack!;
if (stack.length == 0) {
return nothing;
}
Expand Down Expand Up @@ -60,7 +60,7 @@ export function breakpointHitParser(text: string): Breakpoint {
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function stacking(objects: {value: any, type: any}[]): WASM.Value<Type>[] {
function stacking(objects: { value: any, type: any }[]): WASM.Value<Type>[] {
const stacked: WASM.Value<Type>[] = [];
for (const object of objects) {
let value: number = object.value;
Expand Down
12 changes: 6 additions & 6 deletions src/sourcemap/Wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import * as leb from "@thi.ng/leb128";
export namespace WASM {

export enum Float {
f32,
f64,
f32 = 0,
f64 = 1,
}

export enum Integer {
i32,
i64,
i32 = 2,
i64 = 3,
}

export enum Special {
nothing,
unknown
nothing = 4,
unknown = 5
}

export type Type = Float | Integer | Special;
Expand Down
Loading