Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type declaration for BlinkId #188

Open
pedropankaj opened this issue Oct 4, 2021 · 8 comments
Open

type declaration for BlinkId #188

pedropankaj opened this issue Oct 4, 2021 · 8 comments

Comments

@pedropankaj
Copy link

Hi

I am facing type declaration for blinkid :

Could not find a declaration file for module 'blinkid-react-native'. '/Users/*/Documents/ReactNativeProject//node_modules/blinkid-react-native/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/blinkid-react-native if it exists or add a new declaration (.d.ts) file containing declare module 'blinkid-react-native';

plz help

@anjapenic
Copy link

Hi @pedropankaj,

Could you please describe the steps you made when implementing the module in your project?

Best regards,
Anja

@pedropankaj
Copy link
Author

Hi @pedropankaj,

Could you please describe the steps you made when implementing the module in your project?

Best regards, Anja

you does'nt have typescript packages for blinkid-react-native. plz provide

@anjapenic
Copy link

Hello @pedropankaj,

Could you please confirm that you've followed these steps https://github.com/BlinkID/blinkid-react-native#installation? Do you have git lfs installed?

Best regards,
Anja

@msegers
Copy link

msegers commented Nov 8, 2021

@anjapenic @pedropankaj afaik, it's just typescript complaining about the typings, which are indeed not bundled by BlinkID, I think in earlier issues someone suggested you add them yourself, that's what we did (won't bother sharing, ours is only complete for the parts we use, and likely not even entirely correct 😅).

@OrLevy23
Copy link

@msegers would glad if you share it. would be really helpful

@anjapenic
Copy link

Hello @OrLevy23,

Please refer to this reply to check out the two options here.

Regards,
Anja

@AbijahKaj
Copy link

I was looking for types too, ended up creating this gist https://gist.github.com/AbijahKaj/42d848cb9a9cdb6fb0804baf82da7f3d (just place the file in the project).

@tgreco
Copy link

tgreco commented Sep 15, 2024

4 years later @mparadina ... did you learn Typescript yet or are you still as junior as you were in 2021?
This project looks really bad... the example code is atrocious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants