From 6b7b4b17874d1158ea0479e2c940ee46d65d183c Mon Sep 17 00:00:00 2001 From: Blake Knight Date: Thu, 11 Nov 2021 10:00:28 -0600 Subject: [PATCH] :green_heart: correct typings for arrays --- array.d.ts | 5 +++-- key-value.d.ts | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/array.d.ts b/array.d.ts index 54deb6d..8589798 100644 --- a/array.d.ts +++ b/array.d.ts @@ -1,8 +1,9 @@ import { Geolocation, ZIPCode } from '.' -export type ZIPCodeList = Geolocation & { zipCode: ZIPCode } +export type ZIPCodeRecord = Geolocation & { zipCode: ZIPCode } +export type ZIPCodeList = ZIPCodeRecord[] declare module 'us-zips/array' { - const defaultExport: ZIPCodeList[] + const defaultExport: ZIPCodeList export default defaultExport } diff --git a/key-value.d.ts b/key-value.d.ts index 600ce21..e197b58 100644 --- a/key-value.d.ts +++ b/key-value.d.ts @@ -1,6 +1,7 @@ import { Geolocation, ZIPCode } from '.' -export type ZIPCodeList = [ZIPCode, Geolocation][] +export type ZIPCodeRecord = [ZIPCode, Geolocation] +export type ZIPCodeList = ZIPCodeRecord[] declare module 'us-zips/key-value' { const defaultExport: ZIPCodeList