supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

@types #133

Open mandymozart opened 5 years ago

mandymozart commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

alicerocheman commented 4 years ago

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