Conversation
…hirdparty, use `three` instead of `@three` so that TS automatically picks up the types from `@types/three`, etc
|
Interesting stuff. My notes on the changes you've made.
Examples of how I handle it on the front end.
Feel like there is a misunderstanding about the prototypes folder. Its not really meant for the end user as an example of how to use the library. Its more a place with no rules that i can just hammer away at a problem looking for a solution. Type checking isn't important there because I'd like to break the rules or ignore the types that are set when it makes sense in that frame of the prototype. When it comes to demo time, some of the prototypes will be elevated to examples & fixed up & commented for the general audience. Ideally broken out by renderer, so examples/threejs, examples/babylonjs, examples/fungi, etc, etc. Some examples will be repeated to show off working in each respected renderer. If you want to make your own prototype or example folder setup with types, you can make a lum_proto or something along those lines without worries on stepping on each others toes. That folder can exist on your personal branch and something ignore when creating PR requests to keep things a bit clean.
|
…hirdparty, use
threeinstead of@threeso that TS automatically picks up the types from@types/three, etc