Discourse Writing Typescript

Write TypeScript for Discourse core, plugins, and themes. Use when authoring new .ts/.gts files (components, modifiers, helpers, services, utils), typing an existing public API, or converting existing .js/.gjs files to .ts/.gts. Covers the component/modifier/plain-class Signature patterns, TSDoc for Signatures, typing untyped dependencies, compile-time type tests, the strict-grade bar under the loose global tsconfig, and the faithful-port and rename pitfalls that the type-checker does NOT catch.

discourse Updated 48.1k repo stars
github-readme

File contents

discourse/discourse commit faf9fe6fa2

Frequently asked questions

npx get-skill add discourse/discourse-writing-typescript