File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ type Unpromisify<T> = T extends Promise<infer R> ? Unpromisify<R> : T
5
5
// extract only the functions of the Bridge and make every return type a Promise if not already
6
6
export type LinkedBridge < T > = Omit < {
7
7
[ K in keyof T as T [ K ] extends ( ...args : any ) => any ? K : never ] :
8
- T [ K ] extends ( ...args : infer Args ) => infer Return
9
- ? ( ...args : Args ) => Promise < Unpromisify < Return > >
10
- : never
8
+ T [ K ] extends ( ...args : infer Args ) => infer Return
9
+ ? ( ...args : Args ) => Promise < Unpromisify < Return > >
10
+ : never
11
11
} , 'dispose' | 'stream' >
12
12
13
13
export interface VSCodeWebInterface <
@@ -59,4 +59,16 @@ export interface VSCodeWebInterface<
59
59
* Client communicate that DOM are mounted
60
60
*/
61
61
setViewReady ?: ( ) => void ,
62
+ /**
63
+ * Logs a message to the console.
64
+ *
65
+ * @param {string } text - The message to log.
66
+ */
67
+ log ( text : string ) : void ,
68
+ /**
69
+ * Logs an error message to the console.
70
+ *
71
+ * @param {string } text - The error message to log.
72
+ */
73
+ error ( text : string ) : void
62
74
}
You can’t perform that action at this time.
0 commit comments