feat: establish TypeScript-aware frontend tooling
This commit is contained in:
@@ -3,15 +3,16 @@ import { describe, expect, it } from "vitest";
|
||||
import { decideChunkRecovery } from "../../src/application/use-cases/decide-chunk-recovery.js";
|
||||
|
||||
function memoryStorage() {
|
||||
/** @type {unknown} */
|
||||
let value;
|
||||
return {
|
||||
read: () => ({ ok: true, value }),
|
||||
return /** @type {import("../../src/application/ports/storage-port.js").StoragePort} */ ({
|
||||
read: () => ({ ok: /** @type {const} */ (true), value }),
|
||||
write: (_key, next) => {
|
||||
value = next;
|
||||
return { ok: true };
|
||||
return { ok: /** @type {const} */ (true) };
|
||||
},
|
||||
remove: () => ({ ok: true }),
|
||||
};
|
||||
remove: () => ({ ok: /** @type {const} */ (true) }),
|
||||
});
|
||||
}
|
||||
|
||||
describe("controlled chunk recovery", () => {
|
||||
|
||||
Reference in New Issue
Block a user