react-native-aes icon indicating copy to clipboard operation
react-native-aes copied to clipboard

index.d.ts is not a module.

Open gigeos opened this issue 4 years ago • 3 comments

Hello! Thank you for your job! But I have a typing issue with version 1.3.10

When I do: import Aes from 'react-native-aes-crypto'

I have the following issue: File '/node_modules/react-native-aes-crypto/index.d.ts' is not a module

gigeos avatar Sep 02 '21 09:09 gigeos

i get this issue as well

jhartmanlinus avatar Oct 06 '21 19:10 jhartmanlinus

declare module '@tectiv3/react-native-aes-crypto' { function pbkdf2(password: string, salt: string, cost: number, length: number): Promise; function encrypt(text: string, key: string, iv: string): Promise; function decrypt(ciphertext: string, key: string, iv: string): Promise; function hmac256(ciphertext: string, key: string): Promise; function randomKey(length: number): Promise; function sha1(text: string): Promise; function sha256(text: string): Promise; function sha512(text: string): Promise; }

needs to be

declare module 'react-native-aes-crypto' { function pbkdf2(password: string, salt: string, cost: number, length: number): Promise; function encrypt(text: string, key: string, iv: string): Promise; function decrypt(ciphertext: string, key: string, iv: string): Promise; function hmac256(ciphertext: string, key: string): Promise; function randomKey(length: number): Promise; function sha1(text: string): Promise; function sha256(text: string): Promise; function sha512(text: string): Promise; }

after bundled

jhartmanlinus avatar Oct 06 '21 20:10 jhartmanlinus

Hello. Could you help me fix this bug? I also can't import this library

huydv92 avatar Nov 01 '21 06:11 huydv92