We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a1afa0 + 20d86e0 commit 5ac4e15Copy full SHA for 5ac4e15
index.d.ts
@@ -10,8 +10,18 @@ declare module 'cep-promise' {
10
11
// this workarround is because this : https://github.com/Microsoft/TypeScript/issues/5073
12
namespace cep {}
13
+
14
+ type AvaliableProviders =
15
+ "brasilapi" |
16
+ "correios" |
17
+ "viacep" |
18
+ "widenet"
19
- function cep( cep: string | number ): Promise<CEP>
20
+ export interface Configurations {
21
+ providers: AvaliableProviders[]
22
+ }
23
24
+ export function cep(cep: string | number, configurations: Configurations): Promise<CEP>
25
26
export default cep
27
}
0 commit comments