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

@types #133

Open
mandymozart opened this issue Aug 21, 2019 · 3 comments
Open

@types #133

mandymozart opened this issue Aug 21, 2019 · 3 comments

Comments

@mandymozart
Copy link

Is there any one that wrote the type definitions for aframe-react yet? I can not find them and having issues using this library for a more complex project.

@SaudTauqeer
Copy link

I struggled to find one myself but no luck so far.
I know what I'm asking irrelevant to your original question. Apologies for that. But do you know how to implement raycaster i.e add objects to the raycaster in aframe-react

@mandymozart
Copy link
Author

I did move away really quickly from aframe-react, because the implementation is redundant most of the time and incomplete.

@alicerocheman
Copy link

in order to make it work with typescript, I added a aframe.d.ts in src of my project:

declare module "aframe-react";
declare namespace JSX {
  interface IntrinsicElements {
      'a-assets': any
  }
}

It works fine but it would be nice to make aframe-react ready to go, or create a @types package

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

3 participants