Skip to content

Commit 4ff3c79

Browse files
authored
Merge pull request #17 from cxa/type-no-check
chore: make compile happy again
2 parents 08e276f + 66e5eb7 commit 4ff3c79

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

deno.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"build:jsr": "deno -A tasks/build-jsr.ts"
99
},
1010
"imports": {
11-
"@effection-contrib/test-adapter": "jsr:@effection-contrib/test-adapter@^0.1.0",
11+
"@effectionx/test-adapter": "jsr:@effectionx/test-adapter@^0.1.0",
1212
"@std/expect": "jsr:@std/expect@^1.0.13",
1313
"@std/streams": "jsr:@std/streams@^1.0.9",
1414
"@std/testing": "jsr:@std/testing@^1.0.9",
1515
"deepmerge": "npm:deepmerge@^4.3.1",
16-
"effection": "jsr:@effection/effection@^4.0.0-alpha.7",
16+
"effection": "jsr:@effection/effection@^4.0.0-beta.2",
1717
"@std/assert": "jsr:@std/assert@1",
1818
"optics-ts": "npm:optics-ts@^2.4.1",
1919
"vscode-jsonrpc": "npm:vscode-jsonrpc@^8.2.1",

deno.lock

Lines changed: 16 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/json-rpc-connection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export function useConnection(
4242
);
4343
let writable = yield* disposable(
4444
new rpc.StreamMessageWriter(
45+
//@ts-expect-error 🤷
4546
Writable.fromWeb(options.write, { signal }),
4647
),
4748
);

test/bdd.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
createTestAdapter,
3-
type TestAdapter,
4-
} from "@effection-contrib/test-adapter";
1+
import { createTestAdapter, type TestAdapter } from "@effectionx/test-adapter";
52

63
import * as bdd from "@std/testing/bdd";
74

test/sim/initialize.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { each, main } from "effection";
1+
import { each, main, type Operation } from "effection";
22
import { useConnection } from "../../lib/json-rpc-connection.ts";
3-
import { constant } from "https://jsr.io/@effection/effection/4.0.0-alpha.7/lib/constant.ts";
43

54
await main(function* () {
65
let client = yield* useConnection({
@@ -23,3 +22,9 @@ await main(function* () {
2322
yield* each.next();
2423
}
2524
});
25+
26+
function constant<T>(value: T): Operation<T> {
27+
return {
28+
[Symbol.iterator]: () => ({ next: () => ({ done: true, value }) }),
29+
};
30+
}

0 commit comments

Comments
 (0)