Skip to content

Commit e2dbf66

Browse files
committed
fmt
1 parent 458964e commit e2dbf66

File tree

7 files changed

+16
-23
lines changed

7 files changed

+16
-23
lines changed

inspector/context/implementation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type Scope, type Stream, useScope } from "effection";
22
import { createImplementation } from "../lib/implementation.ts";
3-
import { type ContextNode, type ContextData, protocol } from "./protocol.ts";
3+
import { type ContextData, type ContextNode, protocol } from "./protocol.ts";
44

55
export const context = createImplementation(protocol, function* () {
66
let scope = yield* useScope();
@@ -14,7 +14,7 @@ export const context = createImplementation(protocol, function* () {
1414
};
1515
},
1616
};
17-
}
17+
},
1818
};
1919
});
2020

@@ -72,7 +72,7 @@ function readV4Tree(scope: V4Scope): ContextNode {
7272
function readContextData(contexts: Record<string, unknown>): ContextData {
7373
let entries = Object.entries(contexts).map(([key, value]) => {
7474
try {
75-
return [key, JSON.parse(JSON.stringify(value))];
75+
return [key, JSON.parse(JSON.stringify(value))];
7676
} catch (_error) {
7777
return [key, "unserializable"];
7878
}

inspector/context/protocol.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ export const protocol = createProtocol({
2121
args: schema.None,
2222
progress: schema.None,
2323
returns: schema.ContextNode,
24-
}
24+
},
2525
});
26-
27-

inspector/lib/implementation.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import type {
2-
Implementation,
3-
Inspector,
4-
Methods,
5-
Protocol,
6-
} from "./types.ts";
1+
import type { Implementation, Inspector, Methods, Protocol } from "./types.ts";
72

83
export function createImplementation<M extends Methods>(
94
protocol: Protocol<M>,

inspector/lib/inspector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

inspector/lib/types.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ export interface Protocol<M extends Methods> {
2323
methods: M;
2424
}
2525

26-
export type Implementation<M extends Methods> = () => Operation<{
27-
[N in keyof M]: (
28-
...args: InvocationArgs<M, N>["args"]
29-
) => InvocationResult<M, N>;
30-
}>;
26+
export type Implementation<M extends Methods> = () => Operation<
27+
{
28+
[N in keyof M]: (
29+
...args: InvocationArgs<M, N>["args"]
30+
) => InvocationResult<M, N>;
31+
}
32+
>;
3133

3234
export type Handle<M extends Methods> = {
3335
protocol: Protocol<M>;

inspector/mod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export * from "./lib/mod.ts";
2-

watch/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ function extract(argv: string[]): Extract {
7272
let rest: string[] = argv.slice();
7373

7474
for (let arg = rest.shift(); arg; arg = rest.shift()) {
75-
if (!arg.startsWith('-')) {
75+
if (!arg.startsWith("-")) {
7676
rest.push(arg);
7777
break;
7878
}
7979
if (builtins.includes(arg)) {
8080
args.push(arg);
8181
if (arg == "--path") {
82-
if (rest.length > 0) {
83-
args.push(rest.shift()!);
84-
}
82+
if (rest.length > 0) {
83+
args.push(rest.shift()!);
84+
}
8585
}
8686
} else {
8787
rest.unshift(arg);

0 commit comments

Comments
 (0)