JCPalmer Posted June 27, 2018 Share Posted June 27, 2018 I have made a GUI "form" to exercise a webm video & sound recording process I have made. I had just written it as a 180 line StackPanel right in a javascript file specific to the directory of the test scene. If this was bundled as Typescript right with the other code, then it could be injected to any scene I write with very little code & screwing around. I added the GUI.d.ts file, but you get error TS2694: Namespace 'BABYLON' has no exported member 'GUI'. when you assign the type BABYLON.GUI.StackPanel to an object. Any ideas on how to fix this? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 27, 2018 Share Posted June 27, 2018 are you using import (like module import) or // <reference ? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 27, 2018 Author Share Posted June 27, 2018 Actually, neither, but you got me to think of the answer. I was just putting all d.ts files in a source sub-directory. I only used ///references for other source files to help it figure out how to order them. For most projects I just use an include: with a "src/**/*.ts" in the tsconfig.json. The QI extension, where this is going, is too complicated for an include. There I use a files: array that all the files in the order that works. I added the d.ts file there & problem solved. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 27, 2018 Share Posted June 27, 2018 Well done Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.