File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @stack-spot/vscode-async-webview-client" ,
3- "version" : " 0.7.2 " ,
3+ "version" : " 0.7.3 " ,
44 "repository" : " github:stack-spot/vscode-async-webview" ,
55 "main" : " out/index.js" ,
66 "module" : " out/index.mjs" ,
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
55// extract only the functions of the Bridge and make every return type a Promise if not already
66export type LinkedBridge < T > = Omit < {
77 [ 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
1111} , 'dispose' | 'stream' >
1212
1313export interface VSCodeWebInterface <
@@ -59,4 +59,16 @@ export interface VSCodeWebInterface<
5959 * Client communicate that DOM are mounted
6060 */
6161 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
6274}
You can’t perform that action at this time.
0 commit comments