UNPKG

@ksakira10/ngx-via-cep

Version:

A Angular package for ViaCEP (https://viacep.com.br/)

16 lines (15 loc) 724 B
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; import { NgxViaCepConfiguration } from './ngx-via-cep.configuration'; export declare class NgxViaCepService { protected http: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: NgxViaCepConfiguration; private readonly urlFetchByCEP; private readonly urlFetchByAddressSP; constructor(http: HttpClient, basePath: string, configuration: NgxViaCepConfiguration); fetchByCEP: (cep: string) => Observable<any>; fetchByAddressSaoPaulo: (address: string) => Observable<any>; fetchByAddress: (state: string, city: string, address: string) => Observable<any>; }