oframe / ogl

Minimal WebGL Library
https://oframe.github.io/ogl/examples
3.61k stars 206 forks source link

TypeScript house cleaning #185

Closed pschroen closed 9 months ago

pschroen commented 10 months ago

Finished going through all 46 examples (48 if you include the readme examples), I've made a number of updates, most of which are just consistent spacing and indentation, though there are some updates like the removal of unnecessary return await.

All of the code has been run through prettier and verified to be working. 😉

Process while working on the OGL typings:

  1. Copy-pasted all 48 examples (including readme examples) into my OGL Vanilla TypeScript Template while working on the definitions.
  2. Resolved all build errors and added definitions where needed.
  3. Updated all source files with any discrepancies found.
  4. Copy-pasted all the TypeScript versions of the examples back to the source files, removing the type annotations.
  5. Formatted all files with the OGL prettier config.
  6. Re-tested all the examples.

Next step is cleaning-up my working copy of all the definitions.

Related issue: #24

gordonnl commented 9 months ago

Thank you!