Skip to content

Commit

Permalink
Use const modules instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
mbouaziz committed Sep 2, 2024
1 parent cc19b9a commit dde8e6b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion skmd/ts/src/skmd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Options, run, type ToWasmManager } from "#std/sk_types";

var modules: (() => Promise<ToWasmManager>)[];
const modules: (() => Promise<ToWasmManager>)[] = [];
/*--MODULES--*/

const wasmurl = new URL("./skmd.wasm", import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion sknpm/resources/sk_tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { run, type ModuleInit } from "./sk_types.js";

var modules: ModuleInit[];
const modules: ModuleInit[] = [];
/*--MODULES--*/

const wasmurl = new URL("./test.wasm", import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion skstore/ts/src/skstore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export {
cjson,
} from "./skstore_utils.js";

var modules: ModuleInit[];
const modules: ModuleInit[] = [];
/*--MODULES--*/

async function wasmUrl(): Promise<URL> {
Expand Down
2 changes: 1 addition & 1 deletion sql/ts/src/skdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type { Environment } from "#std/sk_types.js";
export { SKDBTransaction } from "./skdb_util.js";
import { getWasmUrl } from "./skdb_wasm_locator.js";

var modules: ModuleInit[];
const modules: ModuleInit[] = [];
/*--MODULES--*/

export async function createSkdb(
Expand Down
2 changes: 1 addition & 1 deletion sql/ts/src/skdb_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { onWorkerMessage } from "#std/sk_worker.js";
import type { Creator } from "#std/sk_worker.js";
import type { SKDB } from "./skdb.js";

var modules: ModuleInit[];
const modules: ModuleInit[] = [];
/*--MODULES--*/

class DbCreator implements Creator<SKDB> {
Expand Down

0 comments on commit dde8e6b

Please sign in to comment.