From: Thomas P. Date: Tue, 30 Jul 2024 12:20:19 +0000 (+0200) Subject: Types: fixed NgxKeyValuePair definition. X-Git-Tag: 0.8.6~27 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=4630230c3d53a28c777d9c5d07efbb1a4ebc3446;p=njs.git Types: fixed NgxKeyValuePair definition. NgxSharedDict.items() returns an array of `[key, value]` pairs, as `Object.entries()`. --- diff --git a/ts/ngx_core.d.ts b/ts/ngx_core.d.ts index af8fc4f3..b459c929 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.