Skip to content

Commit df89a71

Browse files
authored
fix(types): NgxKeyValuePair is actually an array
NgxSharedDict returns an array of `[key, value]`, just like `Object.items()`
1 parent 3ac4968 commit df89a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/ngx_core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ interface NgxFetchOptions {
250250
declare class SharedMemoryError extends Error {}
251251

252252
type NgxSharedDictValue = string | number;
253-
type NgxKeyValuePair<V> = { key: string, value: V };
253+
type NgxKeyValuePair<V> = [key: string, value: V];
254254

255255
/**
256256
* Interface of a dictionary shared among the working processes.

0 commit comments

Comments
 (0)