Skip to content

Commit f1f453e

Browse files
authored
Merge pull request #230 from mateusosmarin/master
Correções typescript
2 parents afe1bc6 + 8c2bed3 commit f1f453e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

index.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ declare module 'cep-promise' {
88
service: string
99
}
1010

11-
// this workarround is because this : https://github.com/Microsoft/TypeScript/issues/5073
12-
namespace cep {}
13-
1411
type AvaliableProviders =
1512
"brasilapi" |
1613
"correios" |
@@ -22,7 +19,7 @@ declare module 'cep-promise' {
2219
timeout?: number
2320
}
2421

25-
export function cep(cep: string | number, configurations: Configurations): Promise<CEP>
22+
function cep(cep: string | number, configurations?: Configurations): Promise<CEP>
2623

2724
export default cep
2825
}

0 commit comments

Comments
 (0)