File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed
packages/gnome-shell/src/extensions Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -151,10 +151,34 @@ export class GettextWrapper {
151
151
}
152
152
153
153
/**
154
- * @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/extensions/sharedInternals.js#L9
154
+ * @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/extensions/sharedInternals.js#L285
155
+ * @version 48
156
+ */
157
+ export interface ConsoleLike {
158
+ log ( ...args : any [ ] ) : void ;
159
+
160
+ warn ( ...args : any [ ] ) : void ;
161
+
162
+ error ( ...args : any [ ] ) : void ;
163
+
164
+ info ( ...args : any [ ] ) : void ;
165
+
166
+ debug ( ...args : any [ ] ) : void ;
167
+
168
+ assert ( condition : boolean , ...args : any [ ] ) : void ;
169
+
170
+ trace ( ...args : any [ ] ) : void ;
171
+
172
+ group ( ...args : any [ ] ) : void ;
173
+
174
+ groupEnd ( ) : void ;
175
+ }
176
+
177
+ /**
178
+ * @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/extensions/sharedInternals.js#L285
155
179
* @version 48
156
180
*/
157
- declare class Console {
181
+ declare class Console implements ConsoleLike {
158
182
#extension: ExtensionBase ;
159
183
160
184
constructor ( ext : ExtensionBase ) ;
You can’t perform that action at this time.
0 commit comments