mirror of
https://github.com/google/blockly.git
synced 2026-01-29 11:40:14 +01:00
* refactor(blocks): Auto-migration of blocks/lists.js to ts * fix(blocks): Manually migrate & fix types in lists.ts * chore(blocks): format lists.ts Not running clang-format on this as for some reason it decides half way through the file to indent everything after that by an extra four spaces (and then has to re-wrap a bunch of lines that are consequently too long). * refactor(blocks): Improve types in lists.ts It turns out that the way I originally specified the types for the mixins meant that they were all 'any', which is a bit useless. Change them so that tsc actually typechecks properties (including method calls) on the mixed-in blocks, and then fix the numerous additional type errors which doing this revealed. (By "fix", I mean apply "as" casts and "!"s as required to suppress type errors from tsc. Actually fixing the code in a way that makes the blocks meaningfully more bulletproof is left as an exercise to the reader - sorry, I mean: will be dealt with in a future PR.) * fix(blocks): Additional fixes for comments PR #6902
35 KiB
35 KiB