·callback-this-type
</>

callback-this-type

コールバックがこれを使用する場合に使用します。 API がこのコンテキストを提供する場合に使用します。イベント ハンドラーを入力するときに使用します。ライブラリがコールバックでこれを設定する場合に使用します。コールバック コンテキストを文書化するときに使用します。

5インストール·0トレンド·@marius-townhouse

インストール

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

callback-this-type のインストール方法

コマンドラインで callback-this-type AI スキルを開発環境にすばやくインストール

  1. ターミナルを開く: ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます
  2. インストールコマンドを実行: このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill callback-this-type
  3. インストールを確認: インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソース: 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.

コールバックがこれを使用する場合に使用します。 API がこのコンテキストを提供する場合に使用します。イベント ハンドラーを入力するときに使用します。ライブラリがコールバックでこれを設定する場合に使用します。コールバック コンテキストを文書化するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill callback-this-type
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-26
更新日
2026-03-10

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

クイックアンサー

callback-this-type とは?

コールバックがこれを使用する場合に使用します。 API がこのコンテキストを提供する場合に使用します。イベント ハンドラーを入力するときに使用します。ライブラリがコールバックでこれを設定する場合に使用します。コールバック コンテキストを文書化するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。

callback-this-type のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill callback-this-type インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソースリポジトリはどこですか?

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