cep-promise
cep-promise copied to clipboard
[Typescript] Cannot use namespace 'cep' as a value.ts
Someone else has the same problem when using with Typescript?
Steps to reproduce:
import cep, { CEP } from 'cep-promise';
....
const data = await cep(str, {});
Version: 4.1.2
I think that is a conflict definition for library.
Just a workaround, adding the ts ignore next line comment:
// @ts-ignore: Unreachable code error
const data: CEP = await cep(str, {});
@lucasltv you should try cep-any project
https://github.com/victorfernandesraton/cep-any
Someone else has the same problem when using with Typescript?
Steps to reproduce:
import cep, { CEP } from 'cep-promise';
....
const data = await cep(str, {});
Version: 4.1.2
I think that is a conflict definition for library.
Someone else has the same problem when using with Typescript?
Steps to reproduce:
import cep, { CEP } from 'cep-promise';
....
const data = await cep(str, {});
Version: 4.1.2
I think that is a conflict definition for library.
Someone else has the same problem when using with Typescript?
Steps to reproduce:
import cep, { CEP } from 'cep-promise';
....
const data = await cep(str, {});
Version: 4.1.2
I think that is a conflict definition for library.
Same problem here