·typescript-satisfies-operator
</>

typescript-satisfies-operator

flpbalada/my-opencode-config

TypeScript のSatisfies 演算子と型の注釈の適切な使用法をガイドします。このスキルは、型注釈 (コロン) と満足のどちらを使用するかを決定する場合、リテラル型を保持しながらオブジェクトの形状を検証する場合、または型推論の問題のトラブルシューティングを行う場合に使用します。

0インストール·0トレンド·@flpbalada

インストール

$npx skills add https://github.com/flpbalada/my-opencode-config --skill typescript-satisfies-operator

SKILL.md

The satisfies operator validates that an expression matches a type without changing the inferred type. This is different from type annotations (:) which widen the type.

| Annotation Style | Type vs Value | Use Case |

| : Type (colon) | Type wins | Need wider type for reassignment | | satisfies Type | Value wins | Need validation + narrow inference | | as Type | Lies to TS | Escape hatch (use sparingly!) | | No annotation | Inference | Most common - let TS infer |

TypeScript のSatisfies 演算子と型の注釈の適切な使用法をガイドします。このスキルは、型注釈 (コロン) と満足のどちらを使用するかを決定する場合、リテラル型を保持しながらオブジェクトの形状を検証する場合、または型推論の問題のトラブルシューティングを行う場合に使用します。 ソース: flpbalada/my-opencode-config。

原文を見る

引用可能な情報

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

インストールコマンド
npx skills add https://github.com/flpbalada/my-opencode-config --skill typescript-satisfies-operator
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-01
更新日
2026-02-18

クイックアンサー

typescript-satisfies-operator とは?

TypeScript のSatisfies 演算子と型の注釈の適切な使用法をガイドします。このスキルは、型注釈 (コロン) と満足のどちらを使用するかを決定する場合、リテラル型を保持しながらオブジェクトの形状を検証する場合、または型推論の問題のトラブルシューティングを行う場合に使用します。 ソース: flpbalada/my-opencode-config。

typescript-satisfies-operator のインストール方法は?

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

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

https://github.com/flpbalada/my-opencode-config