Skip to content

Commit

Permalink
Types: fixed NgxKeyValuePair definition.
Browse files Browse the repository at this point in the history
NgxSharedDict.items() returns an array of `[key, value]` pairs, as `Object.entries()`.
  • Loading branch information
TPXP committed Aug 14, 2024
1 parent 3ac4968 commit eb2db20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/ngx_core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ interface NgxFetchOptions {
declare class SharedMemoryError extends Error {}

type NgxSharedDictValue = string | number;
type NgxKeyValuePair<V> = { key: string, value: V };
type NgxKeyValuePair<V> = [string, V];

/**
* Interface of a dictionary shared among the working processes.
Expand Down

0 comments on commit eb2db20

Please sign in to comment.