·callback-this-type
</>

callback-this-type

Verwenden Sie diese Option, wenn Rückrufe dies verwenden. Verwenden Sie diese Option, wenn die API diesen Kontext bereitstellt. Wird beim Eingeben von Ereignishandlern verwendet. Wird verwendet, wenn die Bibliothek dies in Rückrufen festlegt. Wird zum Dokumentieren des Rückrufkontexts verwendet.

5Installationen·0Trend·@marius-townhouse

Installation

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill callback-this-type

So installieren Sie callback-this-type

Installieren Sie den KI-Skill callback-this-type schnell in Ihrer Entwicklungsumgebung über die Kommandozeile

  1. Terminal öffnen: Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Installationsbefehl ausführen: Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill callback-this-type
  3. Installation überprüfen: Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Quelle: marius-townhouse/effective-typescript-skills.

Provide a Type for this in Callbacks if It's Part of Their API

When a library calls a user-provided callback with a specific this context, that context is part of the API. TypeScript allows you to type this as the first parameter of a function, even though it's not a real parameter. This documents and enforces the expected context.

Type this as the first parameter when it's part of your callback API. This documents the expected context and enables autocompletion.

Verwenden Sie diese Option, wenn Rückrufe dies verwenden. Verwenden Sie diese Option, wenn die API diesen Kontext bereitstellt. Wird beim Eingeben von Ereignishandlern verwendet. Wird verwendet, wenn die Bibliothek dies in Rückrufen festlegt. Wird zum Dokumentieren des Rückrufkontexts verwendet. Quelle: marius-townhouse/effective-typescript-skills.

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill callback-this-type
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-26
Aktualisiert
2026-03-10

Browse more skills from marius-townhouse/effective-typescript-skills

Schnelle Antworten

Was ist callback-this-type?

Verwenden Sie diese Option, wenn Rückrufe dies verwenden. Verwenden Sie diese Option, wenn die API diesen Kontext bereitstellt. Wird beim Eingeben von Ereignishandlern verwendet. Wird verwendet, wenn die Bibliothek dies in Rückrufen festlegt. Wird zum Dokumentieren des Rückrufkontexts verwendet. Quelle: marius-townhouse/effective-typescript-skills.

Wie installiere ich callback-this-type?

Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill callback-this-type Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Wo ist das Quell-Repository?

https://github.com/marius-townhouse/effective-typescript-skills