Skip to content

Add tsc type generation #30

Draft
KonradLinkowski wants to merge 1 commit intobryanbraun:mainfrom
f-rks:feat/29-tsc-type-generation
Draft

Add tsc type generation #30
KonradLinkowski wants to merge 1 commit intobryanbraun:mainfrom
f-rks:feat/29-tsc-type-generation

Conversation

@KonradLinkowski
Copy link
Copy Markdown
Contributor

Hi,

This is my proposal for #29 and maybe after changes for #24

  • Adds typescript dependency
  • Removes microbundle dependency
  • Modifies tsconfig.json
  • Adds a lot of JSDoc comments

This is a draft!
Notes:

  • I tried a few things to tell typescript that Checkboxland in src/index.js is extended with plugins but I didn't manage to find a good solution yet.
  • Some of the function descriptions where generated by github copilot. I've read them to make sure that they make sense but I might've missed something silly.
  • Typing variables and functions within methods might be a bad idea actually, because it makes them less readable (e.g. var $i = function(/** @type {number} */ x, /** @type {number} */ y) {) - let me know what do you think.

@KonradLinkowski KonradLinkowski marked this pull request as draft February 22, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant