From 42e0be2b861feaac6a5b29eec9233991e367dbbb Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 28 Feb 2023 23:52:44 +0100 Subject: [PATCH] Add doc section on Typescript --- docs/wip-plugins.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/wip-plugins.md b/docs/wip-plugins.md index 16b582403..387705bd9 100644 --- a/docs/wip-plugins.md +++ b/docs/wip-plugins.md @@ -41,6 +41,13 @@ Example file: An example plugin is available at [https://github.com/Mm2PL/Chatterino-test-plugin](https://github.com/Mm2PL/Chatterino-test-plugin) +## Plugins with Typescript + +If you prefer, you may use [TypescriptToLua](https://typescripttolua.github.io) +to typecheck your plugins. There is a `chatterino.d.ts` file describing the API +in this directory. However this has several drawbacks like harder debugging at +runtime. + ## API The following parts of the Lua standard library are loaded: