aframe-react icon indicating copy to clipboard operation
aframe-react copied to clipboard

@types

Open mandymozart opened this issue 5 years ago • 3 comments

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.

mandymozart avatar Aug 21 '19 14:08 mandymozart

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

SaudTauqeer avatar Oct 14 '19 04:10 SaudTauqeer

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

mandymozart avatar Oct 17 '19 16:10 mandymozart

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

alicerocheman avatar Nov 21 '19 11:11 alicerocheman