Skip to content

Commit 95322cd

Browse files
committed
more renames
1 parent f698628 commit 95322cd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

backend/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class Instances {
132132
wss,
133133
JSON.stringify({
134134
type: "updates",
135-
updates: updates.map(([update]) => update),
135+
updates: updates.map((update) => update),
136136
}),
137137
);
138138
},

sim/create.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WebXdc, ReceivedStatusUpdate } from "@webxdc/types";
1+
import { Webxdc, ReceivedStatusUpdate } from "@webxdc/types";
22

33
type UpdatesMessage = {
44
type: "updates";
@@ -45,11 +45,11 @@ type Log = (...args: any[]) => void;
4545
export function createWebXdc(
4646
transport: Transport,
4747
log: Log = () => {},
48-
): WebXdc<any> {
48+
): Webxdc<any> {
4949
let resolveUpdateListenerPromise: (() => void) | null = null;
5050

51-
const webXdc: WebXdc<any> = {
52-
sendUpdate: (update) => {
51+
const webXdc: Webxdc<any> = {
52+
sendUpdate: (update: any) => {
5353
transport.send({ type: "sendUpdate", update });
5454
log("send", { update });
5555
},

sim/webxdc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WebXdc } from "@webxdc/types";
1+
import { Webxdc } from "@webxdc/types";
22
import {
33
Transport,
44
TransportMessageCallback,
@@ -114,7 +114,7 @@ export class DevServerTransport implements Transport {
114114
}
115115
}
116116

117-
function getWebXdc(): WebXdc<any> {
117+
function getWebXdc(): Webxdc<any> {
118118
return (window as any).webxdc;
119119
}
120120

0 commit comments

Comments
 (0)