Add type declaration file for TypeScript users#20
Add type declaration file for TypeScript users#20merlinz01 wants to merge 2 commits intopanphora:mainfrom
Conversation
|
Thank you for this contribution! I've just merged a comprehensive TypeScript definitions file that addresses the need for TypeScript support. The implementation I've added includes:
The definitions cover all the functionality including the main OverType class, all configuration options, theme system, toolbar, shortcuts, and static methods. Since TypeScript support has now been added to the main branch (commit 4c324d0), I'll close this PR. Thank you again for bringing this to our attention and for your initial implementation! |
Credit kbhomes for overscroll fix (#17) and merlinz01 for TypeScript definitions (#20) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
Update: Your contribution has been credited in the README! Thank you again for helping improve OverType with TypeScript support. You can see the credit here: https://github.com/panphora/overtype#contributors |
Credit kbhomes for overscroll fix (#17) and merlinz01 for TypeScript definitions (#20) 🤖 Generated with [Claude Code](https://claude.ai/code)
Credit kbhomes for overscroll fix (#17) and merlinz01 for TypeScript definitions (#20) 🤖 Generated with [Claude Code](https://claude.ai/code)
Without type definitions, users who wish to use this library in their TypeScript project get build errors and no type checking. This PR adds a simple type declaration file and registers it in
package.json.Manually making these changes to the installed package in
node_modulesconfirms that it works: