three-stdlib icon indicating copy to clipboard operation
three-stdlib copied to clipboard

[v2.9.1][typescript] I can't access to TextureNode

Open BenLune opened this issue 3 years ago • 1 comments
trafficstars

  • three 0.139.2:
  • @types/three 0.139.0:
  • three-stdlib version : 2.9.1

Problem description:

It seems that all classes in nodes folder are inaccessibles in a typescript project

Relevant code:

Suggested solution:

When I look at the Node.js file in the nodes folder of the thre Capture d’écran 2022-04-19 à 18 50 53 e-stdlib folder in node_modules, I find the TextureNode class imported from ./accessors folder, but when I look into the Nodes.d.ts files the TextureNode is exported from an ./inputs folder which doesn't seem to exist.

BenLune avatar Apr 19 '22 22:04 BenLune

The problem seems to be located in the threeJS typings : https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three/examples/jsm The nodes folder is missing...

BenLune avatar Apr 20 '22 14:04 BenLune

This should be fixed in @types/three 0.144 from https://github.com/three-types/three-ts-types/pull/240.

CodyJasonBennett avatar Sep 03 '22 14:09 CodyJasonBennett