Skip to content

Commit

Permalink
💚 correct typings for arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
blakek committed Nov 11, 2021
1 parent 5823ef6 commit 6b7b4b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions array.d.ts
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 2 additions & 1 deletion key-value.d.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6b7b4b1

Please sign in to comment.