Skip to content

Commit

Permalink
Merge pull request BrasilAPI#230 from mateusosmarin/master
Browse files Browse the repository at this point in the history
Correções typescript
  • Loading branch information
lucianopf authored Mar 16, 2022
2 parents afe1bc6 + 8c2bed3 commit f1f453e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ declare module 'cep-promise' {
service: string
}

// this workarround is because this : https://github.com/Microsoft/TypeScript/issues/5073
namespace cep {}

type AvaliableProviders =
"brasilapi" |
"correios" |
Expand All @@ -22,7 +19,7 @@ declare module 'cep-promise' {
timeout?: number
}

export function cep(cep: string | number, configurations: Configurations): Promise<CEP>
function cep(cep: string | number, configurations?: Configurations): Promise<CEP>

export default cep
}

0 comments on commit f1f453e

Please sign in to comment.