Skip to content

Commit 82f7a00

Browse files
committed
annotate key types as const strings when possible
1 parent 8f1c824 commit 82f7a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ declare module 'geocodio-library-node' {
233233
results: T extends Array<Q> ? Array<{
234234
query: Q;
235235
response: SingleGeocodeResponse;
236-
}> : Record<string, {
236+
}> : Record<keyof T, {
237237
response: SingleGeocodeResponse;
238238
}>;
239239
}
@@ -247,7 +247,7 @@ declare module 'geocodio-library-node' {
247247
results: T extends Array<Q> ? Array<{
248248
query: Q;
249249
response: ReverseGeocodeResponse;
250-
}> : Record<string, {
250+
}> : Record<keyof T, {
251251
response: ReverseGeocodeResponse;
252252
}>;
253253
}

0 commit comments

Comments
 (0)