From eb2db204782618b3906c6e0dcc0a9b7f2458f21e Mon Sep 17 00:00:00 2001 From: "Thomas P." Date: Tue, 30 Jul 2024 14:20:19 +0200 Subject: [PATCH] Types: fixed NgxKeyValuePair definition. NgxSharedDict.items() returns an array of `[key, value]` pairs, as `Object.entries()`. --- ts/ngx_core.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/ngx_core.d.ts b/ts/ngx_core.d.ts index af8fc4f3d..b459c9293 100644 --- a/ts/ngx_core.d.ts +++ b/ts/ngx_core.d.ts @@ -250,7 +250,7 @@ interface NgxFetchOptions { declare class SharedMemoryError extends Error {} type NgxSharedDictValue = string | number; -type NgxKeyValuePair = { key: string, value: V }; +type NgxKeyValuePair = [string, V]; /** * Interface of a dictionary shared among the working processes.