File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7109,8 +7109,10 @@ declare module 'vscode' {
7109
7109
* VS Code will save off the state from `setState` of all webviews that have a serializer. When the
7110
7110
* webview first becomes visible after the restart, this state is passed to `deserializeWebviewPanel`.
7111
7111
* The extension can then restore the old `WebviewPanel` from this state.
7112
+ *
7113
+ * @param T Type of the webview's state.
7112
7114
*/
7113
- interface WebviewPanelSerializer {
7115
+ interface WebviewPanelSerializer < T = unknown > {
7114
7116
/**
7115
7117
* Restore a webview panel from its serialized `state`.
7116
7118
*
@@ -7122,7 +7124,7 @@ declare module 'vscode' {
7122
7124
*
7123
7125
* @return Thenable indicating that the webview has been fully restored.
7124
7126
*/
7125
- deserializeWebviewPanel ( webviewPanel : WebviewPanel , state : any ) : Thenable < void > ;
7127
+ deserializeWebviewPanel ( webviewPanel : WebviewPanel , state : T ) : Thenable < void > ;
7126
7128
}
7127
7129
7128
7130
/**
You can’t perform that action at this time.
0 commit comments