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 faf9fe6 3 files · 37.9 KB Updated

File contents

discourse/discourse/tree/main/.skills/discourse-writing-typescript commit faf9fe6fa2

Frequently asked questions

npx skillmds@latest add discourse/discourse-writing-typescript