Geometry and BufferGeometry types are missing from WebGLRenderer.d.ts file. Compiling an app that uses three.js with tsc produces the following errors with r106:
node_modules/three/src/renderers/WebGLRenderer.d.ts:317:13 - error TS2304: Cannot find name 'Geometry'.
317 geometry: Geometry | BufferGeometry,
~~~~~~~~
node_modules/three/src/renderers/WebGLRenderer.d.ts:317:24 - error TS2304: Cannot find name 'BufferGeometry'.
317 geometry: Geometry | BufferGeometry,
~~~~~~~~~~~~~~
Found 2 errors.
This is already fixed on dev here: #16918
@mrdoob I'm afraid we need to bump the npm package. Otherwise we get more issue like this one...
I wonder if there is a way to detect such errors with Travis. We had a similar issue last release.
Would it be possible to perform some sort of test-build with TS?
@Mugen87 done!
I wonder if there is a way to detect such errors with Travis. We had a similar issue last release.
Would it be possible to perform some sort of test-build with TS?
/ping @gkjohnson
Surprisingly it doesn't look like the typescript linter has or is using the no-undef rule. I'll do a little more research and submit an issue in that repo if I can't figure it out.
I've added an issue in the typescript-eslint repo:
https://github.com/typescript-eslint/typescript-eslint/issues/662
Most helpful comment
Surprisingly it doesn't look like the typescript linter has or is using the
no-undefrule. I'll do a little more research and submit an issue in that repo if I can't figure it out.