Skip to content

Commit f1e6464

Browse files
authored
Update typing
1 parent af1bf58 commit f1e6464

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/labextension/src/memoryUsage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export namespace MemoryUsage {
9393
*/
9494
constructor(options: Model.IOptions) {
9595
super();
96-
this._poll = new Poll<Private.IMetricRequestResult | null>({
96+
this._poll = new Poll<Private.IMetricRequestResult>({
9797
factory: () => Private.factory(),
9898
frequency: {
9999
interval: options.refreshRate,
@@ -216,7 +216,7 @@ export namespace MemoryUsage {
216216
private _currentMemory = 0;
217217
private _memoryLimit: number | null = null;
218218
private _metricsAvailable = false;
219-
private _poll: Poll<Private.IMetricRequestResult | null>;
219+
private _poll: Poll<Private.IMetricRequestResult>;
220220
private _units: MemoryUnit = 'B';
221221
private _warn = false;
222222
}
@@ -328,7 +328,7 @@ namespace Private {
328328
/**
329329
* Make a request to the backend.
330330
*/
331-
export async function factory(): Promise<IMetricRequestResult | null> {
331+
export async function factory(): Promise<IMetricRequestResult> {
332332
const request = ServerConnection.makeRequest(
333333
METRIC_URL,
334334
{},

0 commit comments

Comments
 (0)