File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export class Instances {
132
132
wss ,
133
133
JSON . stringify ( {
134
134
type : "updates" ,
135
- updates : updates . map ( ( [ update ] ) => update ) ,
135
+ updates : updates . map ( ( update ) => update ) ,
136
136
} ) ,
137
137
) ;
138
138
} ,
Original file line number Diff line number Diff line change 1
- import { WebXdc , ReceivedStatusUpdate } from "@webxdc/types" ;
1
+ import { Webxdc , ReceivedStatusUpdate } from "@webxdc/types" ;
2
2
3
3
type UpdatesMessage = {
4
4
type : "updates" ;
@@ -45,11 +45,11 @@ type Log = (...args: any[]) => void;
45
45
export function createWebXdc (
46
46
transport : Transport ,
47
47
log : Log = ( ) => { } ,
48
- ) : WebXdc < any > {
48
+ ) : Webxdc < any > {
49
49
let resolveUpdateListenerPromise : ( ( ) => void ) | null = null ;
50
50
51
- const webXdc : WebXdc < any > = {
52
- sendUpdate : ( update ) => {
51
+ const webXdc : Webxdc < any > = {
52
+ sendUpdate : ( update : any ) => {
53
53
transport . send ( { type : "sendUpdate" , update } ) ;
54
54
log ( "send" , { update } ) ;
55
55
} ,
Original file line number Diff line number Diff line change 1
- import { WebXdc } from "@webxdc/types" ;
1
+ import { Webxdc } from "@webxdc/types" ;
2
2
import {
3
3
Transport ,
4
4
TransportMessageCallback ,
@@ -114,7 +114,7 @@ export class DevServerTransport implements Transport {
114
114
}
115
115
}
116
116
117
- function getWebXdc ( ) : WebXdc < any > {
117
+ function getWebXdc ( ) : Webxdc < any > {
118
118
return ( window as any ) . webxdc ;
119
119
}
120
120
You can’t perform that action at this time.
0 commit comments